Re: Unnesting ListArrays

2019-09-30 Thread Wes McKinney
the child array, which has only 3 values in the > > example you gave. > > > > A function could be written to insert "null" for List values that are > > null, but someone would have to write it and give it a name =) > > > > - Wes > > > >

Re: Unnesting ListArrays

2019-09-26 Thread Suhail Razzak
; example you gave. > > A function could be written to insert "null" for List values that are > null, but someone would have to write it and give it a name =) > > - Wes > > On Wed, Sep 25, 2019 at 5:15 PM Suhail Razzak > wrote: > > > > Hi, > > > >

Re: Unnesting ListArrays

2019-09-25 Thread Wes McKinney
i, > > I'm working through a certain use case where I'm unnesting ListArrays, but > I noticed something peculiar - null ListValues are not retained in the > unnested array. > > E.g. > In [0]: arr = pa.array([[0, 1], [0], None, None]) > In [1]: arr.flatten() > Out [1]: [0, 1, 0]

Unnesting ListArrays

2019-09-25 Thread Suhail Razzak
Hi, I'm working through a certain use case where I'm unnesting ListArrays, but I noticed something peculiar - null ListValues are not retained in the unnested array. E.g. In [0]: arr = pa.array([[0, 1], [0], None, None]) In [1]: arr.flatten() Out [1]: [0, 1, 0] While I would have expected [0, 1