Skip to content

added describe and scoreatpercentile in frame.py #37

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

Merged
merged 1 commit into from Mar 18, 2011
Merged

added describe and scoreatpercentile in frame.py #37

merged 1 commit into from Mar 18, 2011

Conversation

ghost
Copy link

@ghost ghost commented Mar 6, 2011

Added two methods in frame.py: describe, which returns a DataFrame with summary statistics of each columns of the original DataFrame (with index=columns), and scoreatpercentile, which calculate the score at the given percentile.

When I play around with a dataset I use this describe thing a lot so I thought it would be convenient to have this with DataFrame.

I think this is crudely implemented so if you think there is a better way please let me know!

-Joon

@wesm wesm merged commit 6c1b358 into pandas-dev:master Mar 18, 2011
@wesm
Copy link
Member

wesm commented Mar 18, 2011

I tweaked a couple of things (can use the apply function in the scoreatpercentile function), I renamed scoreatpercentile to quantile (analogous to R), and I transposed the result of describe (which can always be transposed back)

wesm@ffc49d7

thanks for the patch!

@ghost
Copy link
Author

ghost commented Mar 18, 2011

Thanks for merging this! By the way, do you prefer me to ask you first before I send a pull request? Please let me know.

@wesm
Copy link
Member

wesm commented Mar 19, 2011

Nope, feel free to submit pull requests whenever you like. Just make sure to stay up-to-date on the upstream changes =)

@ghost
Copy link
Author

ghost commented Mar 19, 2011

Sounds good. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant