Spaces:
Runtime error
Runtime error
Download src/data_utils.py from Jongyoon-Song/test_space: direct link, hf CLI and curl.
- Browser
- Download file 520 Bytes
-
https://huggingface.co/spaces/Jongyoon-Song/test_space/resolve/main/src/data_utils.py
- Command line
-
hf download hf://spaces/Jongyoon-Song/test_space/src/data_utils.py
-
curl -L -o data_utils.py https://huggingface.co/spaces/Jongyoon-Song/test_space/resolve/main/src/data_utils.py
520 Bytes
| import pandas as pd | |
| from pathlib import Path | |
| def get_dataframe_category(): | |
| abs_path = Path(__file__).parent | |
| df = pd.read_csv(str(abs_path / "data/export_category_250709.csv"), encoding='utf-16', delimiter=" ") | |
| df = df.sort_values("Overall", ascending=False) | |
| return df | |
| def get_dataframe_language(): | |
| abs_path = Path(__file__).parent | |
| df = pd.read_csv(str(abs_path / "data/export_lang_250709.csv"), encoding='utf-16', delimiter=" ") | |
| df = df.sort_values("Overall", ascending=False) | |
| return df |