Two Y-Axes with Multiple traces


#1

Is there a way to create a Two Y-Axes with multiples traces?

When I work with a single Y-Axes, I used the following method:

trace = []
for i in range(0,2):
     trace.append(go.Scatter())

I build a first draft for my Two Y-Axes using the following example: https://plot.ly/python/multiple-axes/

I thought I would use the same method, however, it gives me the following error:

Valid items for ‘data’ at path [‘data’] under parents [‘figure’]

It looks like at this step: data = [trace1, trace2], it doesnt accept a list of list (instead of just a list, given that I appended each of my traces with multiples traces).

Thanks