export a dataframe to csv in python without index code example Example: save dataframe to csv without index df.to_csv(f"{filename}", index=False)