Skip to content

Instantly share code, notes, and snippets.

@Venkatstatistics
Last active August 10, 2019 11:05
Show Gist options
  • Save Venkatstatistics/a5700ada1c97fbd7c17507ae3d7c95a7 to your computer and use it in GitHub Desktop.
Save Venkatstatistics/a5700ada1c97fbd7c17507ae3d7c95a7 to your computer and use it in GitHub Desktop.
# we define a function to read the 200k words. The words are stored in a column called 'keyword'in the csv file 'big_Keywords'. The words are read one by one and stored
in a list are under the key "big_words".
def read_biglist():
biglist = pd.read_csv("big_Keywords.csv")
bigwords = biglist.keyword.tolist()
for token1 in bigwords:
r.lpush("big_keywords", token1) #LPUSH puts the new value at the start of the list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment