Plotly Typeerror

Try this: Plotly: figure.add_trace(..) not working (double scatter graph)