Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas map using two columns

df['d'] = df.apply(lambda x: some_func(a = x['a'], b = x['b'], c = x['c']), axis=1)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #map #columns
ADD COMMENT
Topic
Name
5+3 =