holgerbrandl / krangl

krangl is a {K}otlin DSL for data w{rangl}ing
MIT License
561 stars 50 forks source link

Looking for equivalent function 'df.apply(func)' from pandas #81

Closed paro1234 closed 4 years ago

paro1234 commented 4 years ago

Is there an equivalent to df.apply in Krangl?

holgerbrandl commented 4 years ago

Not yet. What's your specific use case, to perform element-wise operations on all cells in the dataframe?

Reference: https://pandas.pydata.org/pandas-docs/stable/reference/api/pandas.DataFrame.apply.html

paro1234 commented 4 years ago

My use case is I want to apply a custom function to a specific column.

holgerbrandl commented 4 years ago

Can't you use addColumn to replace the column?

holgerbrandl commented 4 years ago

I'm closing this because of inactivity. Feel welcome to reopen.