How to save pandas to_csv from left to right?
Pandas to.csv() function saves my table from right to left, like in hebrew even thought the dataframe is in English.
I have the indexes on the right and columns going right to left, how can I do the opposite?
You can reverse the order of your columns, and store it again as a csv
.
Method 1: attribute.columns[::-1]
on the corresponding dataframe:
df[df.columns[::-1]].to.csv()
Method 2:
df.iloc[:, ::-1].to_csv()