movie_list = [{‘Goodfellas’: 4.5, ‘Raging Bull’: 3.0, ‘Roman Holiday’: np.nan,‘The Apartment’: 1.0},
{‘Goodfellas’: 2.0, ‘Raging Bull’: 1.0, ‘Roman Holiday’: 4.5, ‘The Apartment’: 5.0}]
movie_data.loc[movie_data.The Apartment.isin([5,1]),[“Goodfellas”,“The Apartment”]] = “Sidddddd”
Above line is not working, But below one works good
movie_data.loc[movie_data.Goodfellas.isin([4.5,2]),[“Goodfellas”,“The Apartment”]] = “Sid”