0

I have a dataset that contains these values.

Game        
Cricket     
Football    
Basketball  
Snooker     
Bowling     
Baseball    
Cricket     
Football    
Basketball  
Snooker     
Bowling     

I want to create a new column[Type] based on the values in the Game as below Cricket, Football, Basketball should be classified as "Asia" while other games should be classified as "Europe.

Game         Type
Cricket      Asia
Football     Asia
Basketball   Asia
Snooker      Europe 
Bowling      Europe 
Baseball     Asia
Cricket      Asia
Football     Asia
Basketball   Asia

I always get the error "Value Error:- Length of values 14 does not match the index:- 2254

0 Answers0