Download scripts/Helper/cleaner.py from FiendHunter/Github_bot_scripts: direct link, hf CLI and curl.
- Browser
- Download file 401 Bytes
-
https://huggingface.co/datasets/FiendHunter/Github_bot_scripts/resolve/9f045d9a99d37ef16bb0bc285b184bc0d8cb618a/scripts/Helper/cleaner.py
- Command line
-
hf download hf://datasets/FiendHunter/Github_bot_scripts@9f045d9a99d37ef16bb0bc285b184bc0d8cb618a/scripts/Helper/cleaner.py
-
curl -L -o cleaner.py https://huggingface.co/datasets/FiendHunter/Github_bot_scripts/resolve/9f045d9a99d37ef16bb0bc285b184bc0d8cb618a/scripts/Helper/cleaner.py
401 Bytes
| import pandas as pd | |
| file_path = '/home/aru/Desktop/Github_analyser/Output/split_summary/wasmedge_split.csv' | |
| df = pd.read_csv(file_path) | |
| df_cleaned = df.dropna(subset=['Content']) | |
| output_file_path = '/home/aru/Desktop/Github_analyser/Output/split_summary/wasmedge_split_cleam.csv' | |
| df_cleaned.to_csv(output_file_path, index=False) | |
| print("Rows with empty 'Content' have been removed.") | |