Displaying Maps With Plotly Express Mapbox and Streamlit
ฝัง
- เผยแพร่เมื่อ 14 พ.ย. 2023
- Streamlit provides a quick and easy way to build interactive applications and dashboards for data analysis and machine learning. If we are looking to build a data analysis app within Streamlit that uses data containing location information, one of the first visualisations we may want to consider adding is a map. Having an interactive map within our app allows us to visualise where the data points are located, and in turn, we can identify patterns or dig into the data in more depth.
This tutorial will show how to integrate plotly express maps directly in a Streamlit app.
Article Version:
/ 3-easy-ways-to-include...
Dataset
The data we are using for this article comes from the Norwegian Petroleum Directorate website and contains the locations of all wells that have been drilled on the Norwegian Continental Shelf. The full dataset can be downloaded here: factpages.npd.no/en/wellbore/...
⭐️ If you haven't already, make sure you subscribe to the channel: / @andymcdonald42
▼ --- SUPPORT THE CHANNEL --- ▼
☕️ BUY ME A COFFEE: www.buymeacoffee.com/andymcdo...
▼ --- GET THE CODE -- ▼
github.com/andymcdgeo/andymcd...
▼ --- SOCIAL CHANNELS --- ▼
Thanks for watching, if you want to connect you can find me at the links below:
/ andymcdonaldgeo
/ andymcdonaldgeo
www.andymcdonald.scot/
#datascience #petrophysics #python #streamlit #eda - วิทยาศาสตร์และเทคโนโลยี
Thanks Andy. Nice series of videos that certainly helped me get started with Streamlit. Have you considered a video of adding the ability to trigger events from plotly charts? For example, clicking and item on a plotly chart to filter a dataframe that powers another plotly chart? This is something I think would be useful to understand to create truly interactive dashboards with Streamlit
Thanks. It is something I have thought about and I’m hoping to share a video on it in the future
@@AndyMcDonald42 awesome thank you!
excellent content and explanation about streamlit... Gracias!!!
great ❤
Very nice Andy. I will have to look in to stresmlit a bit further.
Thanks. Streamlit is definitely worth looking into. It makes it really easy to create interactive web apps without worrying about HTML and CSS 🙂
Thank you for the great video, wondering is it possible to change the icon for all the points on the map?
Very enjoyed this tutorial thank you Andy. I seen not yet post it in Medium. Waiting your new courses!
Thanks. This video is part of the following Medium post: medium.com/towards-data-science/3-easy-ways-to-include-interactive-maps-in-a-streamlit-app-b49f6a22a636
It also shows how to use folium for mapping as well. Hope it helps :)
@@AndyMcDonald42 yes got it thank you. Would you please provide the files you are using? In Medium could not find the files from the link you provided properly!!
@@gmostafaali
The link to the data is provided within the article and in the video description above. Once on the website, you can download the data to a CSV file
The data used in this tutorial comes from the Norwegian Petroleum Directorate website and contains the locations of all wells that have been drilled on the Norwegian Continental Shelf. The full dataset can be downloaded here: factpages.npd.no/en/wellbore/tableview/exploration/all
Hope this helps.
This map can work in offline environments?