Skip to content

Instantly share code, notes, and snippets.

@grohith327
Created June 7, 2018 14:14
Show Gist options
  • Save grohith327/b5ceb0dd26ea131542fc145334024f41 to your computer and use it in GitHub Desktop.
Save grohith327/b5ceb0dd26ea131542fc145334024f41 to your computer and use it in GitHub Desktop.
import pandas as pd
df = pd.read_csv('/Users/rohith/Documents/Datasets/Iris_dataset/iris.csv')
df = df.drop(['Id'],axis=1)
target = df['Species']
s = set()
for val in target:
s.add(val)
s = list(s)
rows = list(range(100,150))
df = df.drop(df.index[rows])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment