✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

Two Y-Axes with Multiple traces

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):

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).