Its a time series data of 365 days a year. Now, I’m deploying a streamlit app which able to allow user to select a month from Jan to December using a st.selectbox option and based on the selected month, the app will show the daily dataset for that prticular month only. For example, If the user is selcting “July” as month, then data from 1st July to 31st July will be shown in a Datatable.
# Modules
import streamlit as st
import pandas as pd
import datetime
# Read dataset
df = pd.read_excel('Book1.xlsx') # Test dataset in my case
# Choice of months
month_name = ["January","February","March","April"] # Add aditional months
month_choice = st.selectbox(label = "Select your month", options = month_name) # Give user to select
# Convert month name to value
df['month'] = pd.DatetimeIndex(df['date']).month
month_obj = datetime.datetime.strptime(month_choice, "%B")
sel = month_obj.month # Get the month value
# Get that particular month and display to the user
par = df[df["month"] == sel]
st.write(par["date"]) # You can add the other coloumns as well