Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- metric = 'TMAX'
- data = [go.Scatter(x=df.index, y=df[column], mode='lines', name=column) for column in [metric,f'{metric}_rolling']]
- layout = go.Layout(title = f'{metric} and 10 year rolling average')
- fig = go.Figure(data = data, layout=layout)
- pyo.plot(fig)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement