pandas split by space

# importing pandas module  
import pandas as pd 

# new data frame with split value columns 
data["Team"]= data["Team"].str.split(" ", n = 1, expand = True) 

# df display 
data 

Here is what the above code is Doing:
1. We’re using the str.split() method to split the Team column into two columns: Team and Name.
2. We’re using the n parameter to specify the number of splits.
3. We’re using the expand parameter to return a dataframe with the new columns.
4. We’re using the inplace parameter to make the changes in the original dataframe.