Closed Sashanka-Shekhar-Behera closed 1 year ago
@app.callback( Output("download-dataframe-csv", "data"), Input("btn_csv", "n_clicks"), prevent_initial_call=True, ) def func(n_clicks): return dcc.send_data_frame(data.to_csv, "mydf.csv", index=False)
I use this function to export the dash table as a csv file...But I want to export the Dash datatable as a pdf file...please help!!!
@app.callback( Output("download-dataframe-csv", "data"), Input("btn_csv", "n_clicks"), prevent_initial_call=True, ) def func(n_clicks): return dcc.send_data_frame(data.to_csv, "mydf.csv", index=False)
I use this function to export the dash table as a csv file...But I want to export the Dash datatable as a pdf file...please help!!!