DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
Fill NaN of a column with values from another column
df['column_1'].fillna(df['column_2'], inplace=True)
Source by datatofish.com #
PREVIOUS
NEXT
Tagged:
#Fill
#NaN
#column
#values
#column
ADD COMMENT
Topic
COMMENT
Name
8+9 =
Submit