I'm trying to drop the last row in a dataframe created by pandas in python and seem to be having trouble.
index = DateRange('1/1/2000', periods=8)
df = DataFrame(randn(8, 3), index=index, columns=['A', 'B', 'C'])
df.drop([shape(df)-1], axis = 0)
returns the original DataFrame with the last row removed.