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

corner case when initializing Series from scalar #3862

Closed
lodagro opened this issue Jun 12, 2013 · 5 comments
Closed

corner case when initializing Series from scalar #3862

lodagro opened this issue Jun 12, 2013 · 5 comments

Comments

@lodagro
Copy link
Contributor

lodagro commented Jun 12, 2013

In [1]: import pandas as pd

In [2]: pd.__version__
Out[2]: '0.11.1.dev-45d298d'

In [3]: pd.Series(10)
Out[3]: 10

Ok, when setting index explicitly

In [4]: pd.Series(10, index=[0])
Out[4]:
0    10
dtype: int64
@jreback
Copy link
Contributor

jreback commented Jun 12, 2013

this is a current feature, but is a very unpandas like thing to do and is confusing.

I am planning on banning this in 0.12 with the refactor of series however (as this is implemented in new, which is not going to be used explicity).

@jreback
Copy link
Contributor

jreback commented Jun 12, 2013

see #3482

@lodagro
Copy link
Contributor Author

lodagro commented Jun 12, 2013

Interesting feature :-), to me it looked like a bug. What was the idea behind this feature?

@jreback
Copy link
Contributor

jreback commented Jun 12, 2013

I have no idea, was there originaly....

@wesm ?

@jreback
Copy link
Contributor

jreback commented Aug 16, 2013

closed by #3482

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

2 participants