Skip to content

Instantly share code, notes, and snippets.

Avatar
📈
coding

baggiponte baggiponte

📈
coding
View GitHub Profile
@baggiponte
baggiponte / multiplot.py
Created November 12, 2021 19:33
Dropdown menu for a plotly lineplot to display one column at a time
View multiplot.py
import pandas as pd
import plotly.graphic_objects as go
def multi_plot(df: pd.DataFrame) -> None:
fig = go.Figure()
for column in df.columns.to_list():
fig.add_trace(
go.Scatter(