daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Jan 16th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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]]
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top