Untitled
unknown
plain_text
a month ago
450 B
0
Indexable
Never
dataframe = data[data['vendor_id'] == 21368] plt.scatter(dataframe['customer_lat'], dataframe['customer_lon'], color='blue', alpha=0.5) plt.scatter(dataframe['vendor_lat'], dataframe['vendor_lon'], color='red') plt.scatter(dataframe['centroid_lat'], dataframe['centroid_lon'], color='purple') plt.title('Vendor 698347') plt.xlabel('Latitude') plt.ylabel('Longitude') # Add a legend plt.legend(['Customer', 'Vendor', 'Centroid']) plt.show()
Leave a Comment