Answers for "updating column values"

0

updating column values

mapping_dict = {
    'Android': 'Android',
    'Chrome OS': 'Chrome OS',
    'Linux': 'Linux',
    'Mac OS': 'macOS',
    'No OS': 'No OS',
    'Windows': 'Windows',
    'macOS': 'macOS'
}

df['col'] = df['col'].map(mapping_dict)
print(my_series)
Posted by: Guest on July-29-2021

Code answers related to "updating column values"

Python Answers by Framework

Browse Popular Code Answers by Language