Hello everybody, need some help. I’m a beginner, so this might be a silly question. I was attempting to plot a graph with secondary axes in plotly, here’s my code -
f = make_subplots(specs=[[{“secondary_y”: True}]])
f.add_trace(go.Scatter(
y = df_totalfires.loc[:, ‘1998’ : ‘2000’].sum(axis = 0),
x = df_totalfires.columns[:3],
secondary_y = False
))
f.addtrace(go.Scatter(
y = brazil_rainfall.loc[1998:2000, :].sum(axis = 1),
x = df_totalfires.columns[:3],
secondary_y = True
))
This is giving me the traceback error:
ValueError: Invalid property specified for object of type plotly.graph_objs.Scatter: ‘secondary_y’
Am I doing something wrong here? Any help would be appreciated. Thank you so much!