Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas use map lambda to fillna python

import numpy as np

df1['user_score'] = np.where(df1['user_score'].isna(), df2['user_score'], df1['user_score'])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #map #lambda #fillna #python
ADD COMMENT
Topic
Name
7+7 =