Skip to content

Tag: python-3.x

String column to multiple columns in DataFrame

I have a DataFrame with multiple columns: Now I want to break column C(whose each entry is separated by n) into multiple column like this: I tried few techniques but can’t make it. I tried to use df.apply but not able to fix NA columns. Is there a way to cleanly achieve this? Thanks. Answer A solution u…