I'm trying to split the content below into multiple columns, separated by | or multiple pipes. For example, what you see below should have split into 8 columns.
By the end of the week, you will have the opportunity to: | | Explain the accrual basis of accounting and the reasons for adjusting entries. | Prepare adjusting entries for deferrals. | Prepare adjusting entries for accruals. | Prepare an adjusted trial balance and closing entries. | | |
I used the following code:
df2 = df1['los'].str.split('|', expand=True)
I noticed that some rows didn't get split into different columns using the code above. Any ideas why?