I am trying to split a column but I noticed split changing the other values. For example, some values of row 10 exchange with row 8. Why is that?
Actual data on ID 10
| vat_number | email                                            | foi_mail       | website 
|     10     | abc@test.com;example@test.com;example@test.com   | xyz@test.com   | example.com
After executing this line of code:
base_data[['email','email_1','email_2']] = pd.DataFrame(base_data.email.str.split(';').tolist(),
                                                        columns = ['email','email_1','email_2'])
base_data becomes:
| vat_number | email                  | foi_mail               | website     | email_1 | email_2
|     10     | some other row value   | some other row value   | example.com | ------  | -----
Before:

After:

Data contains thousands of row, but I showed only one row.
 
     
     
    