Spaces:
Sleeping
Sleeping
Download scripts/inspect_columns.py from HackathonAma/renal-ai-backend: direct link, hf CLI and curl.
- Browser
- Download file 368 Bytes
-
https://huggingface.co/spaces/HackathonAma/renal-ai-backend/resolve/main/scripts/inspect_columns.py
- Command line
-
hf download hf://spaces/HackathonAma/renal-ai-backend/scripts/inspect_columns.py
-
curl -L -o inspect_columns.py https://huggingface.co/spaces/HackathonAma/renal-ai-backend/resolve/main/scripts/inspect_columns.py
368 Bytes
| import pandas as pd | |
| import os | |
| df = pd.read_csv(r"c:\Users\HP\Desktop\Bootcamp AMA\ckd_dataset.csv") | |
| print("--- ALL COLUMNS ---") | |
| print(list(df.columns)) | |
| print("\n--- DATA TYPES ---") | |
| print(df.dtypes.to_string()) | |
| print("\n--- SAMPLE DATA (FIRST 3 ROWS) ---") | |
| print(df.head(3).to_string()) | |
| print("\n--- MISSING VALUES SUMMARY ---") | |
| print(df.isnull().sum().to_string()) | |