Is there a way I can create a new column using pandas 'pd.cut' and 'pd.qcut' functions in visidata on a specific column? #2613
Replies: 1 comment 1 reply
-
Hi, this should work: In your .visidatarc, put If you get an error like If you want to run this command often, make a macro, and generalize the cut command to refer to your own custom variables, e.g. It may be possible in the future to make a new column more simply, with some changes to aggregators that are still being considered. |
Beta Was this translation helpful? Give feedback.
-
Is there a way I can create a new column in visidata using pandas 'pd.cut' and 'pd.qcut' functions on an existing numeric column?
I tried importing pandas in my .visidatarc but I am not able to figure out how to use these specific pandas functions on a column. I tried searching similar threads but wasn't able to figure out quite how to accomplish this. I think this might be because to use these functions, it needs info on the values of the whole column.
Any tips or help is super appreciated. Love visidata!
Beta Was this translation helpful? Give feedback.
All reactions