Spaces:
Paused
Paused
Download inspect_data.py from Arko007/movie-backend: direct link, hf CLI and curl.
- Browser
- Download file 235 Bytes
-
https://huggingface.co/spaces/Arko007/movie-backend/resolve/main/inspect_data.py
- Command line
-
hf download hf://spaces/Arko007/movie-backend/inspect_data.py
-
curl -L -o inspect_data.py https://huggingface.co/spaces/Arko007/movie-backend/resolve/main/inspect_data.py
235 Bytes
| import pandas as pd | |
| try: | |
| df = pd.read_csv('./Artifacts/main_data.csv') | |
| print("Columns:", df.columns.tolist()) | |
| print("First 2 rows:", df.head(2).to_dict()) | |
| print("Dtypes:", df.dtypes) | |
| except Exception as e: | |
| print(e) | |