You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Would come in handy for a number of a different applications from basic statistics, to understanding one's data, to estimating machine learning algorithmic load.
changed the title [-]Feature request: add number of unique entries to pandas.DataFrame.describe()[/-][+]Feature request: add median & number of unique entries to pandas.DataFrame.describe()[/+]on Apr 30, 2014
changed the title [-]Feature request: add median & number of unique entries to pandas.DataFrame.describe()[/-][+]Feature request: add median, mode & number of unique entries to pandas.DataFrame.describe()[/+]on Apr 30, 2014
Hijacking this issue to propose a variant (and steal more from dplyr)
Why not have a DataFrame.agg that is identical to DataFrame.groupby.agg, but with a "single group"? This also goes along with the new .resample.agg, yay for synergy. Basically it takes a function/str or list of functions/strs or a dict of column names to functions/str and aggregates accordingly.
Activity
[-]Feature request: add number of unique entries to pandas.DataFrame.describe()[/-][+]Feature request: add median & number of unique entries to pandas.DataFrame.describe()[/+][-]Feature request: add median & number of unique entries to pandas.DataFrame.describe()[/-][+]Feature request: add median, mode & number of unique entries to pandas.DataFrame.describe()[/+]jreback commentedon Apr 30, 2014
FYI, you can easily make your own and patch it in. Just put in your startup code / application.
soupault commentedon Feb 10, 2016
median
out-of-the-box would really be a great thing to have!Not just for
Series
but also forGroupBy
's.jorisvandenbossche commentedon Feb 10, 2016
Note that median is already in describe, as in
50%
soupault commentedon Feb 10, 2016
@jorisvandenbossche indeed! Sorry, my bad. 👶
TomAugspurger commentedon Feb 10, 2016
Hijacking this issue to propose a variant (and steal more from dplyr)
Why not have a
DataFrame.agg
that is identical toDataFrame.groupby.agg
, but with a "single group"? This also goes along with the new.resample.agg
, yay for synergy. Basically it takes a function/str or list of functions/strs or a dict of column names to functions/str and aggregates accordingly.jorisvandenbossche commentedon Feb 10, 2016
Related to #1623
ENH: add Series & DataFrame .agg/.aggregate to provide convienent
ENH: add Series & DataFrame .agg/.aggregate to provide convienent
52 remaining items