If i have a dataframe called df I can select rows 1 to 4, using this df[1:4]
But I can't do it like this (it is possible in R)
a=[1:4]
df[a]
Is this possible in Pandas?
If i have a dataframe called df I can select rows 1 to 4, using this df[1:4]
But I can't do it like this (it is possible in R)
a=[1:4]
df[a]
Is this possible in Pandas?