Seaborn quick reference

Sudheer Keshav Bhat · October 11, 2021

Data Visualization

Let the dataframe contain 4 columns

$ df.columns
[`time`, `current_price`, `price_change`, `margin`]

To draw time on x-axis vs rest on y-axis (multiple y columns)

sns.lineplot(
    x="time",
    y="value",
    hue="variable",
    data=pd.melt(df, ["time"])
)