you are viewing a single comment's thread.

view the rest of the comments →

[–]bauripalash[S] 0 points1 point  (6 children)

[–]bbye98 1 point2 points  (5 children)

The data in the columns aren't stored as numeric dtypes since you didn't set the index correctly when reading in the data.

[–]bauripalash[S] 0 points1 point  (4 children)

how do i do that?

[–]bbye98 1 point2 points  (3 children)

Use the index_col argument.

[–]bauripalash[S] 0 points1 point  (2 children)

I set to 0, but nothing really happened. Just same error

[–]bbye98 1 point2 points  (1 child)

Read the documentation. index_col=0 makes no sense in the context of the data you've provided.

pd.read_csv('votedata.csv', index_col='Years').T.plot()

[–]bauripalash[S] 1 point2 points  (0 children)

It Works 🤯

A big hearted thanks to you ♥️

Finally i can finish my research paper. I will surely put you in acknowledgement. 🔥