import pandas
df = pandas.DataFrame([list(range(3)), list(range(3)), list(range(3))])
print(df)
my_columns = ['a', 'b', 'c']
df.columns = my_columns
print(df)
Assigning column names from a list to a table