y = pd.get_dummies(df.Countries, prefix='Country') print(y.head()) # from here you can merge it onto your main DF