Guest User

Untitled

a guest
Jan 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. dataset_drop = dataset.drop(index = [128, 133, 140, 143, 199])
  2.  
  3. dropped_data = dataset.drop(index != [128, 133, 140, 143, 199])
  4.  
  5. NameError: name 'index' is not defined
  6.  
  7. index != [128, 133, 140, 143, 199]
  8.  
  9. dataset.drop(index=df.index.difference([128, 133, 140, 143, 199]))
  10.  
  11. dataset.loc[[128, 133, 140, 143, 199]]
  12. # If they are labels,
  13. # dataset.iloc[[128, 133, 140, 143, 199]]
Add Comment
Please, Sign In to add comment