-1
How do I change the decimal point separator to comma and then generate a graph? I used the following command, no error, but the chart continues with point as decimal separator
import locale
loc = locale.getlocale()
locale.setlocale(locale.LC_NUMERIC, "pt_BR")
Are you using a data file? Are you generating this data at random? Show your data output. Edit your question so that it is reproducible by everyone, so we can help you more efficiently. Hug!
– lmonferrari
Thanks for the feedback. The code is very simple, I want to plot the graph of a time series, but with decimal separator as comma since the article is in Portuguese. I imported the pandas, matplotlib and locale libraries. Then I read the database in CSV (pd.read_csv('data.csv', parse_dates=[0], index_col=0, Squeeze=True) and have plotted the graph. But it keeps generating the dot graph.
– Eduardo Campos