Skip to content

Tag: pandas

How to save Farsi text in csv file using python?

I was trying to save my dataset in a CSV file with the following script: but the result is confusing, write some unknown chars to CSV file instead of Farsi chars: Can anyone help me? I want to write all these files in a CSV: example of what I have in one of them and want to write: but result:

Seaborn bar plot with regression line query

I am trying to produce a bar plot with a line of regression. I am trying to follow a previous suggestion for the same problem but get an error message that I am unable to overcome. My script is as follows: The error message I get is: but I am not sure what this means. Can anyone help? Answer Please