I have a DataFrame like this (first column is index (786...) and second day (25...) and Rainfall amount is empty):
Day Rainfall amount (millimetres)
786 25
787 26
788 27
789 28
790 29
791 1
792 2
793 3
794 4
795 5
and I want to delete the row 790. I tried so many things with df.drop but nothin happend.
I hope you can help me.
df = df[df.index != 790]- MaxUdrop? ie.df = df.drop(790), are you sure the first column is the index? what doesdf.indexshow? - EdChumdf[df['Day'] != 790]will work as'Day'is a column and not the index, show the output fromdf.info()- EdChum