def get_option_chain(symbol,expdate):
if symbol == 'NIFTY':
Base_url = ("https://www.nseindia.com/live_market/dynaContent/live_watch/option_chain/optionKeys.jsp?symbol="+symbol+"&date="+expdate)
new_table = pd.DataFrame(columns=col_hdrs_name)
rows_table = ofTable.select('tr')
new_table = new_table.append(pd.Series(colsval, index=new_table.columns), ignore_index=True)
print(new_table)
new_table.to_excel('Option_Chain_Table_{}.xlsx'.format(symbol))
get_option_chain('NIFTY','31OCT2019')
get_option_chain('NIFTY','3OCT2019')
get_option_chain('NIFTY','10OCT2019')
Как я могу напечатать данные «get_option_chain» для «NIFTY» для 3 разных сроков на 3 отдельных листах одного и того же файла Excel?