pd.to_csv check if there is same name code example Example: pandas to csv without header file = pd.read_csv(file_name, header=None)