Download isnull.py from samptah/kenyan-languages-corpus-engine: direct link, hf CLI and curl.
- Browser
- Download file 381 Bytes
-
https://huggingface.co/datasets/samptah/kenyan-languages-corpus-engine/resolve/main/isnull.py
- Command line
-
hf download hf://datasets/samptah/kenyan-languages-corpus-engine/isnull.py
-
curl -L -o isnull.py https://huggingface.co/datasets/samptah/kenyan-languages-corpus-engine/resolve/main/isnull.py
381 Bytes
| import pandas as pd | |
| df = pd.read_csv("datasets/processed/kenyan_multilingual_dataset.csv") | |
| print("Empty source:", | |
| df["source_text"].isna().sum()) | |
| print("Empty target:", | |
| df["target_text"].isna().sum()) | |
| print("Blank source:", | |
| (df["source_text"].str.strip() == "").sum()) | |
| print("Blank target:", | |
| (df["target_text"].str.strip() == "").sum()) | |