import streamlit as st import folium from streamlit_folium import folium_static # Define hospital data hospitals = [ {'name': 'Ohio State University', 'state': 'OH', 'lat': 40.0057, 'long': -83.0287}, {'name': 'University of Maryland--College Park', 'state': 'MD', 'lat': 38.9869, 'long': -76.9426}, {'name': 'University of Alabama--Birmingham', 'state': 'AL', 'lat': 33.5057, 'long': -86.8064}, {'name': 'University of California--San Francisco', 'state': 'CA', 'lat': 37.7631, 'long': -122.4572}, {'name': 'University of Colorado--Denver', 'state': 'CO', 'lat': 39.7433, 'long': -105.0062}, {'name': 'University of Florida', 'state': 'FL', 'lat': 29.6445, 'long': -82.3549}, {'name': 'Duke University', 'state': 'NC', 'lat': 36.0014, 'long': -78.9382}, {'name': 'Northwestern University (Feinberg)', 'state': 'IL', 'lat': 41.8962, 'long': -87.6214}, {'name': 'Stanford University', 'state': 'CA', 'lat': 37.4275, 'long': -122.1697}, {'name': 'Columbia University', 'state': 'NY', 'lat': 40.8075, 'long': -73.9626}, {'name': 'University of North Carolina--Chapel Hill', 'state': 'NC', 'lat': 35.9049, 'long': -79.0469}, {'name': 'University of Southern California (Keck)', 'state': 'CA', 'lat': 34.0208, 'long': -118.2858}, {'name': 'University of Utah', 'state': 'UT', 'lat': 40.7644, 'long': -111.8421}, {'name': 'University of Wisconsin--Madison', 'state': 'WI', 'lat': 43.0768, 'long': -89.4105}, {'name': 'University of Texas Southwestern Medical Center--Dallas', 'state': 'TX', 'lat': 32.8124, 'long': -96.8420}, {'name': 'University of California--Los Angeles (Geffen)', 'state': 'CA', 'lat': 34.0689, 'long': -118.4439}, {'name': 'University of Iowa (Carver)', 'state': 'IA', 'lat': 41.6599, 'long': -91.5363}, {'name': 'University of Michigan--Ann Arbor', 'state': 'MI', 'lat': 42.2808, 'long': -83.7430}, {'name': 'University of Wisconsin--Madison', 'state': 'WI', 'lat': 43.0768, 'long': -89.4105}, {'name': 'University of North Carolina--Chapel Hill', 'state': 'NC', 'lat': 35.9049, 'long': -79.0469}, ] st.markdown(""" # Top Ten Teaching Hospital Colleges in the United States 1. **Ohio State University (OH):** Wexner Medical Center is a big teaching hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/Ohio_State_University), Website: [Link](https://wexnermedical.osu.edu/) 2. **University of Maryland--College Park (MD):** University of Maryland Medical Center teaches doctors and helps patients. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_Maryland,_College_Park), Website: [Link](https://www.umms.org/ummc) 3. **University of Alabama--Birmingham (AL):** UAB Medical Center is a big teaching hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_Alabama_at_Birmingham), Website: [Link](https://www.uabmedicine.org/) 4. **University of California--San Francisco (CA):** UCSF Medical Center is a top-ranked hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_California,_San_Francisco), Website: [Link](https://www.ucsfhealth.org/) 5. **University of Colorado--Denver (CO):** Anschutz Medical Campus is a big medical campus that teaches doctors, cares for patients, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_Colorado_Denver), Website: [Link](https://www.cuanschutz.edu/) 6. **University of Florida (FL):** UF Health Shands Hospital is a big teaching hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_Florida), Website: [Link](https://ufhealth.org/) 7. **Duke University (NC):** Duke University Medical Center is a top-ranked hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/Duke_University), Website: [Link](https://www.dukehealth.org/) 8. **Northwestern University (Feinberg) (IL):** Feinberg School of Medicine is a top-ranked medical school that teaches doctors and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/Northwestern_University), Website: [Link](https://www.feinberg.northwestern.edu/) 9. **Stanford University (CA):** Stanford University Medical Center is a top-ranked hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/Stanford_University), Website: [Link](https://www.stanfordhealthcare.org/) 10. **Columbia University (NY):** Columbia University Medical Center is a big teaching hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/Columbia_University), Website: [Link](https://www.cuimc.columbia.edu/education/medical-school) 11. **University of North Carolina--Chapel Hill (NC):** UNC Medical Center is a big teaching hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_North_Carolina_at_Chapel_Hill), Website: [Link](https://www.uncmedicalcenter.org/) 12. **University of Southern California (Keck) (CA):** Keck Medical Center is a big teaching hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_Southern_California), Website: [Link](https://www.keckmedicine.org/) 13. **University of Utah (UT):** University of Utah Health is a big medical campus that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_Utah), Website: [Link](https://healthcare.utah.edu/) 14. **University of Wisconsin--Madison (WI):** University of Wisconsin Hospital and Clinics is a big teaching hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_Wisconsin%E2%80%93Madison), Website: [Link](https://www.uwhealth.org/) 15. **University of Texas Southwestern Medical Center--Dallas (TX):** UT Southwestern Medical Center is a big teaching hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_Texas_Southwestern_Medical_Center), Website: [Link](https://utswmed.org/) 16. **University of Iowa (Carver) (IA):** Carver College of Medicine is a top-ranked medical school that teaches doctors and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_Iowa), Website: [Link](https://medicine.uiowa.edu/) 17. **University of Michigan--Ann Arbor (MI):** University of Michigan Health System is a big teaching hospital that cares for patients, teaches doctors, and does research. - Wikipedia: [Link](https://en.wikipedia.org/wiki/University_of_Michigan), Website: [Link](https://www.uofmhealth.org/) Note: The above list is not exhaustive and there are many other great teaching hospitals in the United States. Additionally, this list is subjective and other rankings may vary. """) # Create # a map centered on the US m = folium.Map(location=[37.0902, -95.7129], zoom_start=4) # Define a function to add a marker for a hospital def add_marker(hospital): popup_text = f"{hospital['name']}, {hospital['state']}" folium.Marker( location=[hospital['lat'], hospital['long']], popup=popup_text ).add_to(m) # Add markers for each hospital for hospital in hospitals: add_marker(hospital) # Display the map in Streamlit folium_static(m) # Note that you will need to have the `streamlit`, `folium`, and `streamlit-folium` packages installed in order to run this code. You can install them using `pip`! Try PyPi