Relabeling categorical values in pandas data frame using fuzzy

Viewed 72

I have a large data frame with 371 unique categorical entries, however some of the entries are similar and in some cases I want to merge certain categories that may have been seperated, for example I have 3 categories that I know of:

3d

3d_platformer

3d_vision

I want to combine these under a general category of just 3d. I feel like this should be possible on a small scale, but I want to scale it up for all the categories as well. The problem being that I don't know the names of all my categories. So in short the full question is:

How can I search for similar categorical names and then replace all the similar name with one group name, with out searching individually?

1 Answers
Related