-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
ENH: subclass Series to represent PMF and CDF #17577
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I suspect it would be out of scope for pandas, since it's pretty stats-specific. (aside: statsmodels has an empirical CDF implementation at http://www.statsmodels.org/dev/generated/statsmodels.distributions.empirical_distribution.ECDF.html. Not sure if that suites your needs or not). |
Thanks for the quick reply, Tom. Understood. The ECDF in StatsModels is along the lines of what I have in mind, but there are a few more methods I'd like to provide (like random sampling). |
see #14781, idea from xarray here - this feels like a usecase that might be well suited to that accessor idea instead of subclassing. Idea would be to be able to write something like
I do agree with @TomAugspurger that this is probably out of scope for pandas to be built in |
closing. as indicated this is out-of-scope. We have removed all non-basic stats functionaility recently. This should be done in |
Uh oh!
There was an error while loading. Please reload this page.
For my own purposes, I am considering writing classes to represent PMFs and CDFs using Pandas Series as the implementation, and an API similar to what I did in the thinkstats2 library (but made more stylistically consistent with Pandas).
Has there been any discussion of adding something like this to Pandas? If I develop it, would you be interested in seeing a proposal to include it? (I ask now because it might influence some design decisions if I am targeting inclusion in Pandas).
The text was updated successfully, but these errors were encountered: