deleting all rows in pandas

Solutions on MaxInterview for deleting all rows in pandas by the best coders in the world

showing results for - "deleting all rows in pandas"
Liesl
01 Jan 2019
1# df is a data frame. like df = pd.read_csv('file.csv')
2df.drop(df.index[:], inplace=True)