Data, Data Science, Data Analysis, Python, Analytics.
dataset. # Select columns and sample 50 rows columns = ['neighbourhood_group', 'room_type', 'latitude', 'longitude'] data_plot = data.loc[:, columns].sample(50, random_state=1) # Create a new column called 'color' data_plot.loc[:, 'color'] = 'NA' # Define conditions for each room type