Spaces:
Sleeping
Sleeping
Update dataset_import.py
Browse files- dataset_import.py +0 -11
dataset_import.py
CHANGED
@@ -2,18 +2,7 @@ import os
|
|
2 |
import pandas as pd
|
3 |
import streamlit as st
|
4 |
|
5 |
-
def download_dataset():
|
6 |
-
# Ensure the data directory exists
|
7 |
-
if not os.path.exists('./data'):
|
8 |
-
os.makedirs('./data')
|
9 |
-
|
10 |
-
# Download the dataset using Kaggle API
|
11 |
-
os.system("kaggle datasets download -d mohaideenabuthahir/analyzeyt -p ./data --unzip")
|
12 |
-
|
13 |
def load_data():
|
14 |
-
# Ensure dataset is downloaded
|
15 |
-
download_dataset()
|
16 |
-
|
17 |
# List available files in the data directory
|
18 |
available_files = [f for f in os.listdir('./data') if f.endswith('.csv')]
|
19 |
|
|
|
2 |
import pandas as pd
|
3 |
import streamlit as st
|
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
def load_data():
|
|
|
|
|
|
|
6 |
# List available files in the data directory
|
7 |
available_files = [f for f in os.listdir('./data') if f.endswith('.csv')]
|
8 |
|