df drop index pandas code example Example: how to drop the index column in pandas Click to copydf.reset_index(drop=True, inplace=True)