Answers for "how to remove header when reading excel in data frame in python"

1

get rid of unnamed column pandas

df.to_csv(path, index=False)
Posted by: Guest on June-10-2020
0

python delete header row

print df.shape[1]          # Show dimension of thecolumns
print range(df.shape[1])   # Show range of the columns

df.columns = range(df.shape[1])   # Delete headers
Posted by: Guest on August-31-2020

Code answers related to "how to remove header when reading excel in data frame in python"

Python Answers by Framework

Browse Popular Code Answers by Language