Skip to content

Commit

Permalink
ARROW-2589: [Python] Workaround regression in Pandas 0.23.0
Browse files Browse the repository at this point in the history
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
  • Loading branch information
pitrou authored and xhochy committed May 16, 2018
1 parent 6ca246a commit 5bb3d85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyarrow/tests/test_parquet.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ def test_parquet_metadata_api():
([-1.1, 2.2, 2.3, None, 4.4], np.float64, -1.1, 4.4, 1, 4),
(
[u'', u'b', unichar(1000), None, u'aaa'],
str, b'', unichar(1000).encode('utf-8'), 1, 4
object, b'', unichar(1000).encode('utf-8'), 1, 4
),
([True, False, False, True, True], np.bool, False, True, 0, 5),
]
Expand Down

0 comments on commit 5bb3d85

Please sign in to comment.