I have two different dataframes, with the same columns and I want to create an interactive plot and put both subplots in the same figure.
avg1 = (flowData_AR.pivot_table(index=flowData_AR['TimeStamp'].dt.month.rename('month'),
values='Value', aggfunc=np.mean))
avg2 = (flowData_OIJ.pivot_table(index=flowData_OIJ['TimeStamp'].dt.month.rename('month'),
values='Value', aggfunc=np.mean))
avg1.iplot(kind='line', subplots=True,xTitle='Month', yTitle='Average', title='aaa')
avg2.iplot(kind='line',subplots=True, xTitle='Month', yTitle='Average', title='bbb')
I have been trying, and seeing the examples at: https://plot.ly/ipython-notebooks/cufflinks/#dataframes but I`m not able to do this with Cufflinks.
Could you please help me?
Although there's documentation on the matter in plotly, I've had a lot of trouble in getting the information right to make subplots. Here's the solution I've got so far:
The first part matters, I've had lots of issues importing the modules described in the docs, so 'tools' is the submodule which apparently does the job: