jorisvandenbossche commented on a change in pull request #11481:
URL: https://github.com/apache/arrow/pull/11481#discussion_r733631249
##########
File path: python/pyarrow/tests/test_array.py
##########
@@ -2901,6 +2901,14 @@ def test_array_supported_masks():
mask=pa.array([True, False, True, False]))
[email protected]
+def test_array_supported_pandas_masks():
+ import pandas
+ arr = pa.array(pandas.Series([0, 1], name="a", dtype="int64"),
+ mask=pandas.Series([0, False], name="a", dtype='bool'))
+ assert arr.to_pylist() == [0, 1]
Review comment:
I think that's a misinterpretation of the repr there: the "0" is the
index (so it's a boolean Series of length 1 with only a `False` value, not a
Series with values [0, False] (which wouldn't be possible for a boolean
Series))
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]