dimanche 12 juin 2016

Timeseries plot with CI (or value range) using Seaborn

I am trying to create a 3-line time series plot based on the following data Long Dataframe, in a Week x Overload graph, where each Cluster is a different line.

I have multiple observations for each (Cluster, Week) pair (5 for each atm, will have 1000). I would like the points on the line to be the average Overload value for that specific (Cluster, Week) pair, and the band be the min/max values of it.

Currently using the following bit of code to plot it, but I'm not getting any lines, as I don't know what unit to specify using the current dataframe:

    ax14 = sns.tsplot(data = long_total_cluster_capacity_overload_df, value = "Overload", time = "Week", condition = "Cluster")

I have a feeling I still need to re-shape my dataframe, but I have no idea how. Looking for a final results that looks like this enter image description here

Aucun commentaire:

Enregistrer un commentaire