Data, Data Science, Data Analysis, Python, Analytics.
max_value_region_type = data.loc[:, ['neighbourhood_group', 'room_type', 'price']].groupby(['neighbourhood_group', 'room_type']).max().reset_index() # Convert the values to integers max_value_region_type['price'] = max_value_region_type['price'].astype(int) # Rename the columns for better