1df = pd.read_csv('file.csv', names=['a', 'b', 'c'], header=None)
2df.rename(columns = {'a':'A', 'b':'B', 'c':'C'}, inplace = True)
3df.to_csv('file.csv')
1import pandas as pd
2cereal_df = pd.read_csv("/tmp/tmp07wuam09/data/cereal.csv")
3cereal_df2 = pd.read_csv("data/cereal.csv")
4
5# Are they the same?
6print(pd.DataFrame.equals(cereal_df, cereal_df2))
7