I'm trying to leave the last row in a I tried this kind of drop method: but it does not keep the label contained in the axis Is. I also tried to drop by the index name and it still does not work. Any advice would be appreciated. Thanks! Removes the original dataframe with the last line. dataframe created by Panda in Python And seems to be having trouble.
index = date range ('1/1/2000', duration = 8) df = dataframe (randon (8, 3), index = index, column = ['A', 'B', 'C'])
df.drop ( [Size (DF) [0] -1], axis = 0)
df.ix [: - 1]
Comments
Post a Comment