Python How to plot timeseries data in Python

Click For Summary
The discussion centers on plotting data from a dataframe using the pandas library, specifically focusing on creating multiple trend lines for a specific type, such as type A. The original poster (OP) seeks guidance on how to visualize this data, as they are struggling to find relevant examples that match their dataframe's format. The key challenge highlighted is transforming the data into a suitable format for pandas to generate the desired plots, particularly with the feat column being in series form. Participants emphasize the importance of reshaping the dataframe to facilitate the plotting of multiple lines for each type, suggesting that proper data formatting is crucial for successful visualization.
msn009
Messages
53
Reaction score
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

Technology news on Phys.org
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.
 
Learn If you want to write code for Python Machine learning, AI Statistics/data analysis Scientific research Web application servers Some microcontrollers JavaScript/Node JS/TypeScript Web sites Web application servers C# Games (Unity) Consumer applications (Windows) Business applications C++ Games (Unreal Engine) Operating systems, device drivers Microcontrollers/embedded systems Consumer applications (Linux) Some more tips: Do not learn C++ (or any other dialect of C) as a...

Similar threads

  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
3
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 14 ·
Replies
14
Views
4K
Replies
6
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
Replies
7
Views
2K