Copy DataTable to *.csv, .xlsx

There is such a table. Is it possible to copy data to * .csv, * xlsx or any other table formats?

Hi @FreeRP

Assume you have a bokeh DataTable named data_table as in the example here

You can convert its source to a pandas DataFrame and use the pandas to_csv() or to_excel() methods to write as *.csv or *.xlsx, respectively.

Example for data table named data_table as in the linked bokeh example


I hope this helps.