Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

map dataframe

>>> s.map({'cat': 'kitten', 'dog': 'puppy'})
0   kitten
1    puppy
2      NaN
3      NaN
dtype: object
Source by pandas.pydata.org #
 
PREVIOUS NEXT
Tagged: #map #dataframe
ADD COMMENT
Topic
Name
3+2 =