pvardanis opened a new issue, #41672:
URL: https://github.com/apache/arrow/issues/41672
### Describe the bug, including details regarding any error messages,
version, and platform.
I have a `pa.FixedSizeListScalar` that looks like this:
```
<pyarrow.lib.FixedSizeListArray object at 0x13f9b45e0>
[
[
[
1,
2
],
[
3,
4
]
],
[
[
5,
6
],
[
7,
8
]
]
]
```
I'm trying to flatten each row in the `pa.FixedSizeListArray` using
`.values`. Doing `array[0].values`, returns:
```
<pyarrow.lib.FixedSizeListArray object at 0x13f8e7fa0>
[
[
1,
2
],
[
3,
4
]
]
```
but doing `array[0].values.values` returns the initial array flattened, not
the one that I want:
```
[
1,
2,
3,
4,
5,
6,
7,
8
]
```
Weird thing is that `array[0].values.flatten()` returns what it's supposed
to:
```
[
1,
2,
3,
4
]
```
However, I don't want to use `flatten()` since this discards `Null` values.
Is this a bug or am I missing something?
### Component(s)
Python
--
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]