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

BUG: non-numeric asignment to numeric column not upcasting #3216

Closed
jreback opened this issue Mar 29, 2013 · 0 comments · Fixed by #3219
Closed

BUG: non-numeric asignment to numeric column not upcasting #3216

jreback opened this issue Mar 29, 2013 · 0 comments · Fixed by #3219
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions
Milestone

Comments

@jreback
Copy link
Contributor

jreback commented Mar 29, 2013

http://stackoverflow.com/questions/15704274/adding-new-column-to-pandas-dataframe-with-values-for-particular-items

In [18]: df = pd.DataFrame([{"a": 1}, {"a": 3, "b": 2}])

In [19]: df['c'] = np.nan
In [21]: df.ix[0,'c'] = 'foo'
---------------------------------------------------------------------------
ValueError: could not convert string to float: f

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Dtype Conversions Unexpected or buggy dtype conversions
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant