Gmousse / dataframe-js

No Maintenance Intended
https://gmousse.gitbooks.io/dataframe-js/
MIT License
460 stars 38 forks source link

[QUESTION] How to replace column values in dataframe-js? #100

Closed tony-bony closed 4 years ago

tony-bony commented 4 years ago

Question I have recently posted this question on stackoverflow Could you please confirm this is the right way to do it?

I was thinking there would be an easy way to do it, like: df1['c2'] = df2.toArray('c2') ?

Context I am using dataframe-js in JS callback in Bokeh

Gmousse commented 4 years ago

Hi @tony-bony, sorry for the delay, I wasn't active these days.

The dataframe-js DataFrame is not subscriptable (like pandas). It uses an api similar to Spark, with functionnal programming patterns.

But it's a limitation, I will add an easier way for people coming from pandas and other languages.