Quantipy / quantipy

Python for people data
MIT License
66 stars 14 forks source link

Possible to some kind of value count with weights? #1258

Closed Havlin closed 5 years ago

Havlin commented 5 years ago

Pandas has a useful method called value_counts which creates a column of counts or frequency for each categorical column you give it.

Is there something in Quantipy that allows you do something similar, but with a weighted value count? I don't want a crosstab, I simply want a uni-variate column with weighted value frequencies.

alextanski commented 5 years ago

Heya, sorry totally missed that. Using crosstab() without the y-axis provided is not an option?

alextanski commented 5 years ago

bump: @Havlin ^^

Havlin commented 5 years ago

@alextanski Oh okay I didn't realize that worked! thanks a lot!