I have the following test2.csv file:
id,name,city,country
1,David, Johnson,London,UK,
2,Mary, Gueta,NY,USA,
3,Matthias, Nile,Munich,Germany,
I want to read it into a pandas dataframe. Using this code
df = pd.read_csv('test2.csv')
I get the following df:
But I want to store the first name and last name together in the column name. id column should store the numbers. city and country should also store the appropriate values.
Thank you in advance!
