pandas get header from dataframe code example
Example 1: pandas load dataframe without header
df = pd.read_csv(file_path, header=None)
Example 2: how to change a header in pandas
# Can just use df.columns to rename
>>> df = pd.DataFrame({'$a':[1,2], '$b': [10,20]})
>>> df.columns = ['a', 'b']
>>> df
a b
0 1 10
1 2 20