HI! try to understand str.map() method here. after we changed the value in ‘os’ column, I printed the frequency of ‘os’ column. I still see Mac OS and mac OS, It seems that we did not save the change to laptops file after we mapped. What we need to do here?
https://app.dataquest.io/m/293/data-cleaning-basics/9/correcting-bad-values
mapping_dict = {
'Android': 'Android',
'Chrome OS': 'Chrome OS',
'Linux': 'Linux',
'Mac OS': 'macOS',
'No OS': 'No OS',
'Windows': 'Windows',
'macOS': 'macOS'
}
laptops['os'].map(mapping_dict)
print(laptops['os'].value_counts())```