I have a dataset that is 30k in size. I have a column titled "Native Country" I want to create a new variable for every unique value in that column (the Algorithm I am using can only handle numeric value so I need to convert text to binary form).
When I use the following:
Native Country = pd.get_dummies(dataset.Native Country , prefix='Native Country' )
Native Country.head()
I get the following error message
SyntaxError: invalid syntax
Any suggestions please.