I want to get rid of the index column that the Pandas DataFrame prints out in default. Is this possible?
Thank you for your help!
I want to get rid of the index column that the Pandas DataFrame prints out in default. Is this possible? Thank you for your help! |
|||
As @EdChum noted, not sure there's any way to do this by default. For display purposes, you could do:
|
|||
|
print(df.values)
but this outputs a numpy array without the column names so not that readable – EdChum Jul 21 at 8:31