Josh Johnson
Jul 8, 2022

Folium can be very slow with a lot of data. One idea would be to only plot a random sampling of your points. If you are using pandas you can use plot_df = df.sample(1000) or something like that.

If you have specific data you want to show you could use a filter to filter out that data, so like plot_df = df.loc[df[<some column>] == <some value>, :]

Otherwise you could try geopandas instead of Folium, which is less computationally heavy. It won’t have all of the fancy features of Folium, though.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Josh Johnson
Josh Johnson

Written by Josh Johnson

I'm a data scientist with a background in education. I empower learners to become the folks they want to be.

No responses yet

Write a response