Last active
August 10, 2019 11:05
-
-
Save Venkatstatistics/a5700ada1c97fbd7c17507ae3d7c95a7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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