AIDrivenUI-Maps / app.py
mm2593's picture
Update app.py
e51240e
import streamlit as st
import pandas as pd
import numpy as np
#st.makrdown( :smile:)
#[theme]
base="dark"
backgroundColor="FFFFFF"
primaryColor="purple"
# this is a comment line
st.title("Project Name : AI Driven UI\n")
st.subheader("Exercise # 1: Maps πŸ•΅οΈβ€β™€οΈ " )
st.write(" This app shows top 10 states with the most Covid-19 cases per 100,000 residents in all time ")
#st.subheader(" World Map")
##df= pd.read_excel('./Users/mmaqsood/Desktop/CovidStates-Mehak.xlsx' )
##dataframe({data, lat, lon})
Cstates=pd.DataFrame({'Name of the States': ['Alaska', 'Rodhe Island', 'Guam','North Dakota','Kentucky','Tennessee','Florida','West Virginia','South Carolina', 'Utah'],
'lat' :[66.160507, 41.742325 ,13.444304 , 47.650589 , 37.839333, 36.174465 ,25.761681 , 39.000000 ,33.836082 , 39.419220],
'lon' :[-153.369141, -71.742332 , 144.793732 , -100.437012 , -84.270020, -86.767960, -80.191788 , -80.500000, -81.163727, -111.950684]
})
st.dataframe(Cstates)
st.subheader("Map")
st.map(Cstates)
##st.subheader("Table")
##st.write(df)