I noticed that some of my code using the older version of cufflinks(0.12.1) and plotly(2.5.1) no longer works. So I try to rerun the code as in the example to see if I can reproduce the problem.
For this code here:
from plotly.offline import iplot import cufflinks as cf cf.set_config_file(offline=True) %matplotlib inline df=cf.datagen.lines(4,mode='abc') df[['c','d']]=df[['c','d']]*100 #df.iplot(secondary_y=['c', 'd']) fig1 = df.iplot(columns=['a', 'b'], asFigure=True) fig2 = df.iplot(columns=['c', 'd'], kind='bar', secondary_y=['c', 'd'], asFigure=True) fig2['data'].extend(fig1['data']) iplot(fig2)
The code will give me AttributeError delitem
Also, the fig2[‘data’] is now a tuple instead of a list, I can no longer use fig2[‘data’].extend(fig1[‘data’]).
Since many of my multiple y_axis codes are written as in the example, how can I rewrite my code so it will run for the latest version?
Thanks in advance.