Split (explode) pandas dataframe string entry to separate rows
UPDATE 3: it makes more sense to use Series.explode() / DataFrame.explode() methods (implemented in Pandas 0.25.0 and extended in Pandas 1.3.0 to support multi-column explode) as is shown in the usage example: for a single column: In [1]: df = pd.DataFrame({‘A’: [[0, 1, 2], ‘foo’, [], [3, 4]], …: ‘B’: 1, …: ‘C’: [[‘a’, ‘b’, … Read more