How can I subplot 'pie1' in 'fig', so it be located at 'the first' position. this is how I am doing it but it doesn't work out
import pandas as pdimport numpy as npimport seaborn as snsimport plotly.offline as pypimport plotly.graph_objs as gofrom plotly import toolsimport plotly.plotly as pyfrom plotly.offline import iplot,init_notebook_modefrom IPython.core.display import HTMLimport plotly.iodf1=pd.read_excel('file.xlsx',sheet_name='sheet1',index=False)con_pivot=pd.pivot_table(con,index='Category',values=('Payment'),aggfunc='sum',margins=True,margins_name='Total')fig = tools.make_subplots(rows=2, cols=2, subplot_titles=('The first','3','2','4'))pie1=go.Pie(labels=con_pivot.index,values=con_pivot.values)fig.append_trace(pie1,1,1)pyo.plot(fig)
Any help help will be appreciated. Thank you