jorisvandenbossche commented on a change in pull request #11481:
URL: https://github.com/apache/arrow/pull/11481#discussion_r733624208



##########
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:
       ```suggestion
                      mask=pandas.Series([True, False], dtype='bool'))
       assert arr.to_pylist() == [None, 1]
   ```
   
   (I actually first wanted to comment about converting the "0" into "False", 
but then thought to maybe have both a True and False)




-- 
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]


Reply via email to