r-priyam opened a new issue, #37625:
URL: https://github.com/apache/arrow/issues/37625

   ### Describe the usage question you have. Please include as many useful 
details as  possible.
   
   
   I have a 2D array with dictionaries in it and I want to flatten the values 
of it using the first dictionary and _I do NOT want to drop NULLS_. For example 
the expected output:
   ```py
   import pyarrow as pa
   pa.array([[{'key': 1}], None, [{'key': 2}]]).flatten()
   
   >>> [1, None, 2]
   ```
   However, I am getting output as `[1, 2]` which I don't want. 
   
   The end goal is to use `pa.compute.coalesce` on 2 lists. For example, If I 
have 3 arrays like this -
   
   ```py
   import pyarrow as pa
   
   one = pa.array([[{'key': 1}], None, None])
   two = pa.array([None, 2, None])
   three = pa.array([None, None, 3])
   
   # The output should be:
   >>> [1, 2, 3] # when using pa.compute.coalesce
   ```
   But I am not able to achieve this since `.flatten` is removing the `null` 
values
   
   ### Component(s)
   
   Parquet, 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]

Reply via email to