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 stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Mapping #dictionary
ADD COMMENT
Topic
Name
3+5 =