Data, Data Science, Data Analysis, Python, Analytics.
rows_private_room = data_plot.loc[:, 'room_type'] == 'Private room' rows_entire_apt = data_plot.loc[:, 'room_type'] == 'Entire home/apt' rows_shared_room = data_plot.loc[:, 'room_type'] == 'Shared room' # Assign colors based on room type data_plot.loc[rows_private_room, 'color'] = 'darkgreen'