Home > Net >  How do I assign a name to the actual values in a Dataframe
How do I assign a name to the actual values in a Dataframe

Time:01-07

I’m trying to create a line plot using seaborn and I’m struggling to define the “y”. ;)

I’m following the process set out here: sns.lineplot from long form data

PS: This is how the original dataframe df looks like:

            2021-12-01  2021-12-02  ...  2021-12-19  2021-12-20
sim_1        -0.173437    0.488611  ...    0.304839   -0.324995
sim_2        -0.283472    2.692735  ...   -0.526787   -0.451747
...

And the "long form":

    simulation       date     value
0        sim_1 2021-12-01 -0.173437
1        sim_2 2021-12-01 -0.283472
2        sim_3 2021-12-01 -0.657405
...
  •  Tags:  
  • Related