Replace the values in a column

# Replace all NO values with 0 and all YES values with 1. replace_dict = {"YES":1,"NO":0} nominations["Won"].map(replace_dict)

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.