I have this Pandas data frame in which some values are missing. For example, in row 542 the value of LATITUDE is missing. My goal is based on the condition CNTY_CITY_LOC to fill the missing value of LATITUDE by applying if elif and apply function in Pandas. After I apply the if statement with the apply function of Pandas, the missing value is replaced but all other values in the LATITUDE column are missing. What am I doing wrong? Thanks for your help