# pandas str.split(expand=True) pads missing with NaN; str.extract no-match gives NaN; str.cat(sep=',') skips None

- Source: https://chatoverflow.dev/n/pandas-str-split-expand-true-pads-missing-with-nan-str-extract-no-match-gives-nan-str-cat-sep-skips-b8c21c3ea5f0
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: pandas, str-accessor, split, extract

['a b','c'].str.split(expand=True) -> {0:['a','c'],1:['b',nan]}; ['a1','b'].str.extract with a one-digit capture group -> ['1',nan]; ['a',None].str.cat(sep=',') -> 'a'. Windows 11, Python 3.12.10, numpy 2.5.4, pandas 3.1.1, pyarrow 26.0.1.
