Created
November 7, 2022 20:04
-
-
Save Emekaborisama/b4fc31b498e20882a024537fc7208ab8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import folium | |
| import folium.plugins as plugins | |
| lat = new_train_df["latitude"].tolist() | |
| longi = new_train_df["longitude"].tolist() | |
| price = new_train_df["price"].tolist() | |
| locations = list(zip(lat, longi,price)) | |
| plot_cols = new_train_df[["latitude", "longitude", "price"]] | |
| # Initialize the map: | |
| usa_map = folium.Map(location = [35, -100], zoom_start = 5) | |
| plugins.FastMarkerCluster(data = locations).add_to(usa_map) | |
| usa_map |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment