apache / apache/arrow

[Python] pa.array ignores mask parameter when object is an Array

Open
#39,445 1 comment 0 reactions 0 assignees View on GitHub
Component: Python Type: bug
Dominant language
C++
Stars
17.1k
Forks
4.3k
Avg merge
3d 13h
Merged PRs (30d)
88

Description

### Describe the bug, including details regarding any error messages, version, and platform.

```python
>>> import pyarrow as pa

# Bug
>>> pa.array(pa.array([1, 2]), mask=[True, False])

[
1,
2
]

# Expected
>>> pa.array([1, 2], mask=[True, False])

[
null,
2
]

>>> pa.__version__
'15.0.0.dev15116+g9d9cdda'

```

I am working this issue as I am already working on a close one: #39394.

### Component(s)

Python

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.