Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pandas fill na with value from another column

df['Cat1'].fillna(df['Cat2'])
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pandas #fill #na #column
ADD COMMENT
Topic
Name
9+3 =