How to plot timeseries data in Python

  • #1
53
6
I have a dataframe that looks as attached. What I aiming to do is to plot the lines for each type where if it is for type A, I want to be able to have two lines in the graph that shows the trend for type A. I was not able to find any examples online especially with the format of the data in this way. The feat column type is in series form. any ideas will be much appreciated. thanks.
 

Attachments

  • sample_data.xlsx
    9.4 KB · Views: 187

Answers and Replies

  • #2
pbuk
Science Advisor
Gold Member
3,110
1,706
For those who have not been following the many similar posts, note that the OP is using the pandas library and his problem seems to revolve around getting the data into the format pandas requires.
 

Related Threads on How to plot timeseries data in Python

Replies
21
Views
2K
Replies
9
Views
17K
Replies
6
Views
5K
Replies
6
Views
3K
  • Last Post
Replies
6
Views
613
  • Last Post
Replies
7
Views
12K
Replies
4
Views
2K
  • Last Post
Replies
1
Views
1K
  • Last Post
Replies
3
Views
470
Replies
4
Views
2K
Top