Skip to content
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

.describe() for series of objects #241

Closed
wants to merge 4 commits into from

Conversation

takluyver
Copy link
Contributor

See #210.

I don't know if series.dtype == object is the best way to check for non-numeric data, but it appears to work.

At present, I've used fields 'count', 'unique', 'top' (i.e. most common) and 'freq' (i.e. count of the most common). These seem like obvious things for a summary.

I also noticed a problem doing df.describe() if df has integer columns, so I copied some code from series to fix that.

@wesm
Copy link
Member

wesm commented Oct 19, 2011

this looks good and thanks for the min/max bugfix. will need to add a compatability function for Counter which is not present in Python 2.5 which I'm still supporting

@wesm wesm closed this Oct 19, 2011
@takluyver
Copy link
Contributor Author

Actually, checking the docs, 2.6 doesn't have Counter either. It's pure Python, so the simplest thing is probably to copy the 2.7 version and ship it in a module in util. Let me know if you want me to do that.

@wesm
Copy link
Member

wesm commented Oct 19, 2011

would you please? separate pull request since I already rebased and merged this one

@takluyver
Copy link
Contributor Author

OK, no worries.

@wesm
Copy link
Member

wesm commented Oct 22, 2011

Do you have an opinion on how NA (NaN/None) should be handled in the output of Series.describe? I should also take care with that in value_counts

dan-nadler pushed a commit to dan-nadler/pandas that referenced this pull request Sep 23, 2019
We raise an OperationFailure exception when something goes wrong
querying the database as a secondary.  Arctic retries querying the
primary only, and we assert that data comes back.
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.

2 participants