Ejemplo n.º 1
0
from sqlalchemy import create_engine
import pandas as pd
from database import Report
from AnalyseData import Analyse
from visualization import *

engine = create_engine('sqlite:///db.sqlite3')
Session = sessionmaker(bind=engine)
sess = Session()

st.title('Cummunicable Disease Analysis')
st.text("")
st.text("")
sidebar = st.sidebar

tbAnalysis = Analyse('datasets/tuberculosis.csv')
malAnalysis = Analyse('datasets/malaria.csv')


def viewDataset():

    st.header("Dataset Details")
    datasetNames = ['Malaria Dataset', 'Tuberculosis Dataset']
    selData = st.selectbox(options=datasetNames,
                           label="Select the Dataset to View Details")
    st.text("")
    st.text("")
    if selData == datasetNames[0]:
        data = malAnalysis.getDataset()
        st.dataframe(data)
    elif selData == datasetNames[1]:
Ejemplo n.º 2
0
def loadSeaData():
    return Analyse("dataset/sea_levels.csv")
Ejemplo n.º 3
0
                 'Top 20 Countries with Most Fully Vaccinated People',
                 'Country Name', 'No. of Vaccinations'))

    st.text("")
    st.plotly_chart(
        plotChloropeth(data,
                       'Total people fully Vaccinated in world countries',
                       'Country Name', 'No. of Vaccinations'))
    st.markdown("---")


sidebar.header('Choose Your Option')
options = [
    'View Dataset', 'Analyse Manufacturers', 'Analyse Country',
    'Analyse Country By Vaccine'
]
choice = sidebar.selectbox(options=options, label="Choose Action")

with st.spinner("Please Wait for Some Time..."):
    analysis_mnf = Analyse("datasets\manufacturer.csv")
    analysis_cnt = Analyse("datasets\country.csv")

    if choice == options[0]:
        viewDataset()
    elif choice == options[1]:
        analyseManufacturers()
    elif choice == options[2]:
        countrywiseAnalysis()
    elif choice == options[3]:
        vaccineAnalysis()
Ejemplo n.º 4
0
def loadEconomicData():
    return Analyse("dataset/natural-disasters-loss.csv")
Ejemplo n.º 5
0
def loadFloodData():
    return Analyse("dataset/flood_damage.xls")
Ejemplo n.º 6
0
def loadTempData():
    return Analyse("dataset/Environment_Temperature_change.csv")
Ejemplo n.º 7
0
def loadDisasterData():
    return Analyse("dataset/natural-disaster-events.csv")
Ejemplo n.º 8
0
import streamlit as st

from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
import pandas as pd
from database import Report
from visualization import plot, plotBar, plotLine
from AnalyseData import Analyse

engine = create_engine('sqlite:///db.sqlite3')
Session = sessionmaker(bind=engine)
sess = Session()

analysis = Analyse("datasets/dataset.csv")

st.title('Mobile Ads CTR EDA')
sidebar = st.sidebar


def viewForm():

    title = st.text_input("Report Title")
    desc = st.text_area('Report Description')
    btn = st.button("Submit")

    if btn:
        report1 = Report(title=title, desc=desc, data="")
        sess.add(report1)
        sess.commit()
        st.success('Report Saved')
Ejemplo n.º 9
0
import streamlit as st

from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
import pandas as pd
from database import Report
from visualization import *
from AnalyseData import Analyse

engine = create_engine('sqlite:///db.sqlite3')
Session = sessionmaker(bind=engine)
sess = Session()

analysis = Analyse()

st.title('Data Analysis in Mental Health Care')
st.image('logo.jpg')
st.markdown("---")
sidebar = st.sidebar


def viewForm():

    st.plotly_chart(plot())

    title = st.text_input("Report Title")
    desc = st.text_area('Report Description')
    btn = st.button("Submit")

    if btn:
        report1 = Report(title=title, desc=desc, data="")
def load2020Data():
    return Analyse('datasets/unemployment2020.csv')
def loadWorldData():
    return Analyse('datasets/unemployment.csv')
def loadIndiaData():
    return Analyse('datasets/india.csv')
Ejemplo n.º 13
0
import streamlit as st

from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
from AnalyseData import Analyse
from visualization import *

engine = create_engine('sqlite:///db.sqlite3')
Session = sessionmaker(bind=engine)
sess = Session()

regionAnalysis = Analyse('datasets/WHOregionLifeExpectancyAtBirth.csv')
healthAnalysis = Analyse('datasets/HALElifeExpectancyAtBirth.csv')
regionHealthAnalysis = Analyse(
    'datasets/HALeWHOregionLifeExpectancyAtBirth.csv')
lifeExpectancyAnalysis = Analyse('datasets/LifeExpectancyAtBirth.csv')


st.title('Data Analyst On Life Expectancy in Human')
sidebar = st.sidebar


def viewDataset():
    st.header('Data Used in Project')
    dataframe = regionAnalysis.getDataframe()

    with st.spinner("Loading Data..."):
        st.dataframe(dataframe)

        st.markdown('---')
        cols = st.beta_columns(4)
Ejemplo n.º 14
0
import streamlit as st

from sqlalchemy.orm import sessionmaker
from sqlalchemy import create_engine
import pandas as pd
from database import Report
from visualization import *
from AnalyseData import Analyse

engine = create_engine('sqlite:///db.sqlite3')
Session = sessionmaker(bind=engine)
sess = Session()

analysis = Analyse("datasets/vgsales.csv")

st.title('Video Games Sales Analysis')
st.image(
    "https://blog.vinfotech.com/sites/default/files/styles/blog-list-img-new/public/how-to-build-a-successful-real-money-gaming-website-banner.png?itok=MJI4LKyG"
)

st.markdown("""
##### Made By - Rohan Kr Ojha
""")

st.markdown("----")

sidebar = st.sidebar


def viewDataset():
    st.markdown("""