s = data['Lot Shape'].value_counts()
I took out the categories from the column Lot Shape. Now, I want to create a new category by combining the categories of Lot Shape such that the new category has two new categories.
For example, If IR1, IR2, IR3 are the categories of Lot Shape, I want to create a new variable IR such that it contains two new categories (IR and IR3)
Could you please help me out with any suitable solution?