-
-
Notifications
You must be signed in to change notification settings - Fork 18.1k
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
int64 Series and NA assignment #839
Comments
This should raise an exception |
cool. just finished test coverage. |
observed in git master
|
yarikoptic
added a commit
to neurodebian/pandas
that referenced
this issue
Mar 2, 2012
* commit 'v0.7.1-1-ga2e86c2': (90 commits) BUG: Fix Series, DataFrame plot() for non numerical/datetime (Multi)Index (closes pandas-dev#741). RLS: Version 0.7.1 DOC: release notes, what's new, change dev version to 0.7.1 BUG: close pandas-dev#839, another case where nan may be assigned to int series ENH: raise NotImplementedError if user tries to iterate over .ix, GH pandas-dev#840 BUG: fixed null-check per pandas-dev#839 BUG: close pandas-dev#839, exception on assigning NA to bool or int64 series TST: more test coverage for release target TST: added core coverage TST: fix lingering line of code from pandas-dev#838 DOC: added yet a bit more to release notes TST: unit test for pandas-dev#838 DOC: added more release notes BUG: raise more helpful error msg for pandas-dev#835 TST: added skip excel test for no xlrd installed BUG: close pandas-dev#835, add option to suppress index inference BUG: close pandas-dev#837, excelfile throws an exception for two-line file ENH: fill_value arg in DataFrame.reindex/reindex_axis, add fillna to sparse objects, GH pandas-dev#784 ENH: add fill_value argument to Series.reindex, DataFrame next, pandas-dev#784 ENH: concat Series with axis=1 for completeness, GH pandas-dev#787 ...
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think a bug:
In [1]: s = Series(arange(10))
In [2]: s
Out[2]:
0 0
1 1
2 2
3 3
4 4
5 5
6 6
7 7
8 8
9 9
In [3]: s[::2] = np.nan
In [4]: s
Out[4]:
0 -9223372036854775808
1 1
2 -9223372036854775808
3 3
4 -9223372036854775808
5 5
6 -9223372036854775808
7 7
8 -9223372036854775808
9 9
In [5]: s.dtype
Out[5]: dtype('int64')
Dataframe seems fine:
In [12]: df = DataFrame(np.random.random_integers(5, size=(5,5)))
In [13]: df
Out[13]:
0 1 2 3 4
0 5 5 3 1 2
1 1 3 3 3 2
2 1 5 2 2 3
3 5 3 1 1 4
4 2 5 2 3 2
In [14]: df[2] = np.nan
In [15]: df
Out[15]:
0 1 2 3 4
0 5 5 NaN 1 2
1 1 3 NaN 3 2
2 1 5 NaN 2 3
3 5 3 NaN 1 4
4 2 5 NaN 3 2
The text was updated successfully, but these errors were encountered: