Spaces:
Runtime error
Runtime error
jcmachicao
commited on
Commit
•
f0acbd7
1
Parent(s):
dca7be1
Update app.py
Browse files
app.py
CHANGED
@@ -2,13 +2,11 @@ import streamlit as st
|
|
2 |
import pandas as pd
|
3 |
|
4 |
# Load dataframe
|
5 |
-
file = st.file_uploader('Seleccione un archivo
|
6 |
-
df = pd.read_csv(file)
|
7 |
|
8 |
if uploaded_file is not None:
|
9 |
# Load the Excel file into a Pandas dataframe
|
10 |
df = pd.read_excel(uploaded_file, engine='openpyxl', type="xlsx")
|
11 |
-
|
12 |
# Show the dataframe in Streamlit
|
13 |
st.write(df.head())
|
14 |
st.write(df.columns)
|
|
|
2 |
import pandas as pd
|
3 |
|
4 |
# Load dataframe
|
5 |
+
file = st.file_uploader('Seleccione un archivo Excel: ')
|
|
|
6 |
|
7 |
if uploaded_file is not None:
|
8 |
# Load the Excel file into a Pandas dataframe
|
9 |
df = pd.read_excel(uploaded_file, engine='openpyxl', type="xlsx")
|
|
|
10 |
# Show the dataframe in Streamlit
|
11 |
st.write(df.head())
|
12 |
st.write(df.columns)
|