Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Mapping using dictionary

state = {"Domestic": 0, "International": 1}  #dictionary for mapping
General['International Student'] = df['10'].map(state)
Source by www.geeksforgeeks.org #
 
PREVIOUS NEXT
Tagged: #Mapping #dictionary
ADD COMMENT
Topic
Name
6+4 =