Spaces:
Sleeping
Sleeping
File size: 484 Bytes
81fa7a9 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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() |