df1[\'Populated Country\'] = df1.apply(if lambda row: row.Country == Country and (row: row.Population 2020 (in thousands) >= 50000), axis = 1) df1.sort_values([\'Re