Uploaded image for project: 'Beam'
  1. Beam
  2. BEAM-11931

str.split(expand=True) doesn't correctly produce None

    XMLWordPrintableJSON

    Details

      Description

      series.str.split(expand=True) and rsplit(expand=True) usually produce None for missing values:

      >>> s.str.split(expand=True)
                                                     0     1     2        3         4
      0                                           this    is     a  regular  sentence
      1  https://docs.python.org/3/tutorial/index.html  None  None     None      None
      2                                            NaN   NaN   NaN      NaN       NaN 
      

      And NaNs are only produced for invalid inputs. Our implementation populates missing values with NaN, because they're added in the final pd.concat.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              bhulette Brian Hulette
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: