Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Select non-NaN rows and replace column value

dfGraduates.loc[~dfGraduates["2nd Queen's Degree"].isnull(), "Queen's Degree"] = dfGraduates["2nd Queen's Degree"]
Source by thispointer.com #
 
PREVIOUS NEXT
Tagged: #Select #rows #replace #column
ADD COMMENT
Topic
Name
5+9 =