Spaces:
Sleeping
Sleeping
Commit
·
d2bad2c
1
Parent(s):
7a452ab
Store data on Huggingface
Browse files- app.py +7 -4
- requirements.txt +2 -1
app.py
CHANGED
@@ -3,16 +3,19 @@ import pandas as pd
|
|
3 |
import matplotlib.pyplot as plt
|
4 |
import seaborn as sns
|
5 |
|
|
|
|
|
6 |
# Streamlit title and introduction
|
7 |
st.title("Likert Scale Visualizations")
|
8 |
st.write("This app visualizes responses to a survey.")
|
9 |
|
10 |
-
#
|
11 |
-
|
|
|
|
|
12 |
|
13 |
-
if uploaded_file is not None:
|
14 |
# Load the CSV file into a DataFrame
|
15 |
-
df =
|
16 |
|
17 |
likert_fields = {
|
18 |
'購物習慣': [
|
|
|
3 |
import matplotlib.pyplot as plt
|
4 |
import seaborn as sns
|
5 |
|
6 |
+
from datasets import load_dataset
|
7 |
+
|
8 |
# Streamlit title and introduction
|
9 |
st.title("Likert Scale Visualizations")
|
10 |
st.write("This app visualizes responses to a survey.")
|
11 |
|
12 |
+
# Get Data
|
13 |
+
dataset = load_dataset("krishaamer/taiwanese-college-students", data_files={'train': 'clean.csv'})
|
14 |
+
|
15 |
+
if dataset is not None:
|
16 |
|
|
|
17 |
# Load the CSV file into a DataFrame
|
18 |
+
df = dataset['train'].to_pandas()
|
19 |
|
20 |
likert_fields = {
|
21 |
'購物習慣': [
|
requirements.txt
CHANGED
@@ -1,4 +1,5 @@
|
|
1 |
streamlit
|
2 |
pandas
|
3 |
matplotlib
|
4 |
-
seaborn
|
|
|
|
1 |
streamlit
|
2 |
pandas
|
3 |
matplotlib
|
4 |
+
seaborn
|
5 |
+
datasets
|