Skip to content

Instantly share code, notes, and snippets.

@Emekaborisama
Created November 7, 2022 20:04
Show Gist options
  • Select an option

  • Save Emekaborisama/b4fc31b498e20882a024537fc7208ab8 to your computer and use it in GitHub Desktop.

Select an option

Save Emekaborisama/b4fc31b498e20882a024537fc7208ab8 to your computer and use it in GitHub Desktop.
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