1

I want to transform a CDS object containing my data back into a DataFrame object since there's still much cleaning to do before I actually pass the values to my glyphs. How can I do that?

I tried

my_df = pd.DataFrame(my_cds_object)

But it raised

ValueError("DataFrame constructor not properly called!") ValueError: DataFrame constructor not properly called!

1 Answers1

0

CDS Objects (bokeh.models.ColumnDataSource, docs) support a .to_df() call, so you can use:

my_df = my_cds_object.to_df()
mosc9575
  • 5,618
  • 2
  • 9
  • 32
Quantum
  • 510
  • 1
  • 2
  • 19