Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dataset_drop = dataset.drop(index = [128, 133, 140, 143, 199])
- dropped_data = dataset.drop(index != [128, 133, 140, 143, 199])
- NameError: name 'index' is not defined
- index != [128, 133, 140, 143, 199]
- dataset.drop(index=df.index.difference([128, 133, 140, 143, 199]))
- dataset.loc[[128, 133, 140, 143, 199]]
- # If they are labels,
- # dataset.iloc[[128, 133, 140, 143, 199]]
Add Comment
Please, Sign In to add comment