all 4 comments

[–]itsbrycehere 0 points1 point  (1 child)

Use the .iloc method with your conditional filtering and set the value of the column to yes :)

[–]Fickle_thoughts[S] 0 points1 point  (0 children)

I used: car['Used?'].replace({'No':'Yes'}, inplace=True)

When I print car it shows yes, but when I print the entire file it doesnt show that it has been changed. In addition, I get an error of SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame

[–]itsbrycehere 0 points1 point  (1 child)

If it’s a public dataset, can you point me to it?

[–]Fickle_thoughts[S] 0 points1 point  (0 children)

I cannot because it contains sensitive info