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

Series of just None not converted to NaN #8136

Closed
hayd opened this issue Aug 28, 2014 · 2 comments
Closed

Series of just None not converted to NaN #8136

hayd opened this issue Aug 28, 2014 · 2 comments

Comments

@hayd
Copy link
Contributor

hayd commented Aug 28, 2014

I was a little surprised by this

In [11]: pd.Series([])
Out[11]: Series([], dtype: float64)

In [12]: pd.Series([None])  # should be NaN / float ?
Out[12]:
0    None
dtype: object

In [13]: pd.Series([None, 1])
Out[13]:
0   NaN
1     1
dtype: float64
@jreback jreback added the Dtypes label Sep 4, 2014
@jreback
Copy link
Contributor

jreback commented Sep 4, 2014

somewhat related to #7941. I think this should be Nan (for a single None) to be consistent.

@jreback jreback added the Bug label Sep 4, 2014
@jreback jreback modified the milestones: 0.15.0, 0.15.1 Sep 4, 2014
@jreback jreback modified the milestones: 0.16.0, Next Major Release Mar 6, 2015
@jorisvandenbossche jorisvandenbossche added API Design and removed Bug Dtype Conversions Unexpected or buggy dtype conversions labels Nov 11, 2016
@jorisvandenbossche jorisvandenbossche modified the milestones: No action, Next Major Release Nov 11, 2016
@jorisvandenbossche
Copy link
Member

We recently discussed this in #13894, where we sort of decided to not change this at the moment.
So closing this, although we should maybe reconsider this somewhere for pandas 2.0 how to handle 'None'.

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

No branches or pull requests

3 participants