Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import pandas as pd
df=pd.DataFrame([[1,2,3],
[10,20,30],
[100,200,300],
[1000,2000,3000],
[1000,2000,3001],
[1000,2000,3002],
[1000,2000,3003]],
columns=['A','B','C'])
df2= df.iloc[[0,2,4,5,6]]
df2.iloc[2:4]
df2.ix[2:4]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment