Answers for "python column apply split to 2 new columns"

4

how to use split in pandas

import pandas as pd 

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

# df display 
data
Posted by: Guest on May-17-2020

Code answers related to "python column apply split to 2 new columns"

Python Answers by Framework

Browse Popular Code Answers by Language