Guest User

Untitled

a guest
Jul 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. check = ['word']
  2. for i in range(len(w_table)):
  3. if w_table.iloc[i, 4] != 'Null':
  4. if w_table.iloc[i, 4] in check:
  5. w_table = w_table.drop(w_table.index[i])
  6. else:
  7. check = check.append(w_table.iloc[i, 4])
  8. w_table.index = np.arange(len(w_table))
  9.  
  10.  
  11. > TypeError Traceback (most recent call
  12. > last) <ipython-input-74-40b9156195fa> in <module>()
  13. > 2 for i in range(len(w_table)):
  14. > 3 if w_table.iloc[i, 4] != 'Null':
  15. > ----> 4 if w_table.iloc[i, 4] in check:
  16. > 5 w_table = w_table.drop(w_table.index[i])
  17. > 6 else:
  18. >
  19. > TypeError: argument of type 'NoneType' is not iterable
Add Comment
Please, Sign In to add comment