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 https://github.com/bokeh/bokeh/blob/master/examples/models/file/data_tables.py

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

data_table.source.to_df().to_csv('data_table.csv')

I hope this helps.

J