# Create a mapping of old category names to new category names
mapping = {
'Bathing': 'Cleaning',
'Cooking': 'Cooking',
'Cleaning': 'Cleaning',
'Cooking and Drinking': 'Other',
'Cooking, cleaning and drinking': 'Other',
'Domestic use': 'Other',
}
# Use the `rename` method to rename the categories
df3 = df3.rename(columns=mapping)
1条答案
按热度按时间pbpqsu0x1#
我所理解和假设的是你想把任何相关的分类,