Vote count:
0
I have a data set that I grouped three columns of. It looks like the below:
+------------------------------------------+
| \t source_ip tid |
+------------------------------------------+
| 01/01/2015 198.255.255.132 76 47 |
| 1002 1 |
| 1076 19 |
| 2002 135 |
| 3002 116 |
| 10033 50 |
| 12003 53 |
| 14003 61 |
| 15003 2 |
| 16003 6 |
| 16074 20 |
| 17004 6 |
| 17074 186 |
| 18004 12 |
| 18074 280 |
| 19001 402 |
| 19004 12 |
| 20001 150 |
| 20004 10 |
| 21004 18 |
| 198.255.255.133 76 47 |
| 1002 4 |
| 1076 30 |
| 2002 182 |
| 3002 154 |
| 10033 73 |
| 12003 57 |
| 14003 56 |
| 15003 10 |
| 16003 11 |
+------------------------------------------+
For each date there are ten IPs and for each IP there are x number of TIDs with counts of email sends from each TID i nthe last column.
I would like to create subplots for each IP over time and show sends from each IP. Is it possible to make subplots for each IP from this one grouped data frame or would I need to reformat the data entirely? The end product would be ten timeseries plots with charted lines over time for each TID.
asked 48 secs ago
Plotting subplots from grouped pandas dataframe
Aucun commentaire:
Enregistrer un commentaire