amol- commented on a change in pull request #11481:
URL: https://github.com/apache/arrow/pull/11481#discussion_r733685805
##########
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:
Oh you are actually correct, I forgot that Series prints the index too.
That's interesting btw. I ended up adding prints to the pyspark codebase
because I was unable to reproduce the problem when using simple `Series` that I
came up with (my first attempt was writing a test using `Series`), now I wonder
why with my previous tests it didn't trigger the segfault
--
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]