Skip to content

DataFrame.dtypes reports all object dtypes even if items aren't object dtype #386

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

Closed
lbeltrame opened this issue Nov 18, 2011 · 1 comment

Comments

@lbeltrame
Copy link
Contributor

I'm not sure if this is just an error on my part, but I have

>>> dataset
<class 'pandas.core.frame.DataFrame'>
Index: 17788 entries, 10000 to AFFX-r2-P1-cre-5
Data columns:
ID          17788  non-null values
Sample 1    17788  non-null values
Sample 2    17788  non-null values
Sample 3    17788  non-null values
dtypes: float64(3), object(1)

>>> dataset.dtypes
ID          object
Sample 1    object
Sample 2    object
Sample 3    object

As it can be seen, "dtypes" reports "object" for all, but the columns aren't really all of dtype object. Is this intended behavior?

@wesm
Copy link
Member

wesm commented Nov 19, 2011

This is caused by a bug that I fixed here:

wesm@3e2e7af

@wesm wesm closed this as completed Nov 19, 2011
dan-nadler pushed a commit to dan-nadler/pandas that referenced this issue Sep 23, 2019
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

No branches or pull requests

2 participants