I have a pandas dataframe like the following:
A B US,65,AMAZON 2016 US,65,EBAY 2016
My goal is to get to look like this:
This will not give the output as expected it will only give the df['A'] first value which is 'U'
This is okay to create column based on provided data df1=pd.DataFrame([x.split(',') for x in df['A'].tolist()],columns= ['country','code','com'])
instead of for lambda also can be use