Answers for "how to read excel based on column names and delete the header in python"

1

get rid of unnamed column pandas

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

if a specific column name is present drop tyhe column

df.columns.str.startswith('Test')
# array([ True, False, False, False])

df.loc[:,~df.columns.str.startswith('Test')]

  toto test2 riri
0    x     x    x
1    x     x    x
Posted by: Guest on November-21-2019

Code answers related to "how to read excel based on column names and delete the header in python"

Python Answers by Framework

Browse Popular Code Answers by Language