-
-
Notifications
You must be signed in to change notification settings - Fork 17.9k
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
Regression: None in string input is wrongly cast to the "None" string #21083
Labels
Blocker
Blocking issue or pull request for an upcoming release
Dtype Conversions
Unexpected or buggy dtype conversions
Regression
Functionality that used to work in a prior pandas version
Milestone
Comments
pitrou
added a commit
to pitrou/arrow
that referenced
this issue
May 16, 2018
There is a regression (*) in Pandas 0.23.0 that breaks test_parquet.py. Pin to 0.22.0 until the issue gets fixed upstream. (*) pandas-dev/pandas#21083
TomAugspurger
added
Dtype Conversions
Unexpected or buggy dtype conversions
Regression
Functionality that used to work in a prior pandas version
labels
May 16, 2018
pitrou
added a commit
to pitrou/arrow
that referenced
this issue
May 16, 2018
There is a regression (*) in Pandas 0.23.0 that breaks test_parquet.py. Pin to 0.22.0 until the issue gets fixed upstream. (*) pandas-dev/pandas#21083
This sounds vaguely familiar... Interestingly, these two are different. In [6]: pd.Series(['a', None]).values.tolist()
Out[6]: ['a', None]
In [7]: pd.Series(['a', None], dtype='str').values.tolist()
Out[7]: ['a', 'None'] |
Hmm, the "str" dtype blindly represents everything: >>> pd.Series(['a', None, 0.4j, object()], dtype='str').values.tolist()
['a', 'None', '0.4j', '<object object at 0x7fc22cf8e6d0>'] On Pandas 0.22.0, however, the "str" dtype specification seems completely ignored: >>> pd.Series(['a', None, 0.4j, object()], dtype='str').values.tolist()
['a', None, 0.4j, <object at 0x7fe5ddcd1e90>] |
I think we're hitting the else in Line 4044 in 501f041
if .
|
pitrou
added a commit
to pitrou/arrow
that referenced
this issue
May 16, 2018
There is a regression (*) in Pandas 0.23.0 that breaks test_parquet.py. Pandas does not have an actual "str" dtype anyway, so pass "object" instead. (*) pandas-dev/pandas#21083
xhochy
pushed a commit
to apache/arrow
that referenced
this issue
May 16, 2018
There is a regression (*) in Pandas 0.23.0 that breaks test_parquet.py. Pandas does not have an actual "str" dtype anyway, so pass "object" instead. (*) pandas-dev/pandas#21083 Author: Antoine Pitrou <[email protected]> Closes #2051 from pitrou/ARROW-2589 and squashes the following commits: b581ef3 <Antoine Pitrou> ARROW-2589: Workaround regression in Pandas 0.23.0
TomAugspurger
added
the
Blocker
Blocking issue or pull request for an upcoming release
label
Jun 7, 2018
This is a blocker for 0.23.1. Taking a look now. |
TomAugspurger
added a commit
to TomAugspurger/pandas
that referenced
this issue
Jun 7, 2018
```python In [1]: import pandas as pd In [2]: pd.Series([1, 2, None], dtype='str')[2] # None ``` Closes pandas-dev#21083
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Blocker
Blocking issue or pull request for an upcoming release
Dtype Conversions
Unexpected or buggy dtype conversions
Regression
Functionality that used to work in a prior pandas version
In Pandas 0.22.0:
In Pandas 0.23.0:
The text was updated successfully, but these errors were encountered: