I have a pandas dataframe(df) like this
Close Close Close Close Close
Date
2000-01-03 00:00:00 NaN NaN NaN NaN -0.033944
2000-01-04 00:00:00 NaN NaN NaN NaN 0.0351366
2000-01-05 00:00:00 -0.033944 NaN NaN NaN -0.0172414
2000-01-06 00:00:00 0.0351366 -0.033944 NaN NaN -0.00438596
2000-01-07 00:00:00 -0.0172414 0.0351366 -0.033944 NaN 0.0396476
in R If I want to select fifth column
five=df[,5]
and without 5th column
rest=df[,-5]
How can I do similar operations with pandas dataframe
I tried this in pandas
five=df.ix[,5]
but its giving this error
File "", line 1
df.ix[,5]
^
SyntaxError: invalid syntax

