简体   繁体   中英

What's the best way to visualize sequence of events within pandas in Python?

I have a dataframe showing sequence of events per session on weblog data, looking like this

SessionID     EventSequence   UrlPath
00001           1              Login
00001           2              Overview
00001           3              Account   
00001           4              LogOff
00002           1              Login
00002           2              LogOff
00003           1              Login
00003           2              Account
00003           3              Overview
00003           4              Overview 
00003           5              LogOff
....

I want to visualize this data in the most efficient, user-friendly way to show the most common paths within sessions in general (thinking of the tree mainly, but can be something else). What would be the most optimal way to visualize sequence of events within data? Can you please share any examples in different domains?

I think the best fine here: Stacked Bar Graph: 在此处输入图片说明

from here

Or

3D bar charts 在此处输入图片说明

from here

In case you looking for common traffic you can you: 在此处输入图片说明 Sankey Diagram like here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM