Advertisement
Guest User

Untitled

a guest
Jun 17th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. def loadCSV(fileName):
  2. readFile = pandas.read_csv(fileName,
  3. index_col="id",error_bad_lines=False)
  4.  
  5. def getwords(df):
  6. words = []
  7. for wordbox in list(df['description']):
  8. for word in wordbox.split():
  9. word = word.lower()
  10.  
  11. words.append(word)
  12. return set(words)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement