I have a data frame column in the below format:
| header |
|---|
| THIS IS an example |
| ALSO this |
| ONE LAST |
| J. one more |
I want to split it into two columns:
| header1 | header2 |
|---|---|
| THIS IS | an example |
| ALSO | this |
| ONE LAST | null |
| null | J. one more |
I have tried extracting the information like this:
df1['header'].str.split('[A-Z]', expand=True)
but my regular expressions are not up to par. Any help is much appreciated!