export pandas dataframe without index code example
Example 1: pandas save without index
#Save to csv without index:
df.to_csv('name.csv', index=False)
Example 2: pandas print dataframe without index
print(df.to_string(index=False))
#Save to csv without index:
df.to_csv('name.csv', index=False)
print(df.to_string(index=False))