fuelPriceItaly / app.py
vonshed's picture
Create app.py
81fa7a9
import streamlit as st
import pandas as pd
def main():
st.title("CSV File Viewer")
# Allow the user to upload a CSV file
uploaded_file = st.file_uploader("Upload a CSV file", type="csv")
if uploaded_file is not None:
# Load the CSV file into a DataFrame
df = pd.read_csv(uploaded_file)
# Display the number of rows in the DataFrame
st.write(f"The number of rows in the CSV file is: {len(df)}")
if __name__ == "__main__":
main()