<jupyter_start><jupyter_text>Drop NA<jupyter_code>director_noNA = director.dropna()
print("Size of Original Data ",director.size)
print("Count of Original Data ",director.count())
print("Data has NaN's director.hasnans ",director.hasnans)
print()
print("Size of Data after removing NAs ",director_noNA.size)
print("Count of Data after removing NAs ",director_noNA.count())
print("Data has NaN's director.hasnans ",director_noNA.hasnans)<jupyter_output>Size of Original Data  4916
Count of Original Data  4814
Data has NaN's director.hasnans  True

Size of Data after removing NAs  4814
Count of Data after removing NAs  4814
Data has NaN's director.hasnans  False<jupyter_text>Replace NA's<jupyter_code>director_ReplaceNAs = director.fillna(0)
print("Size of Original Data ",director.size)
print("Count of Original Data ",director.count())
print("Data has NaN's director.hasnans ",director.hasnans)
print()
print("Count of Data after removing NAs ",director_ReplaceNAs.count())
print("Size of Data after removing NAs ",director_ReplaceNAs.size)
print("Data has NaN's director_noNA.hasnans ",director_noNA.hasnans)<jupyter_output>Size of Original Data  4916
Count of Original Data  4814
Data has NaN's director.hasnans  True

Count of Data after removing NAs  4916
Size of Data after removing NAs  4916
Data has NaN's director_noNA.hasnans  False
{'fraction_non_alphanumeric': 0.09144981412639405, 'fraction_numerical': 0.02453531598513011, 'mean_word_length': 6.5195530726256985, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '2', 'dir': 'jupyter-structured-clean-dedup', 'id': '640051', 'license': 'Apache-2.0', 'n_tokens_mistral': 471, 'n_tokens_neox': 421, 'n_words': 141, 'path': 'Pandas Recipes 1.0 Pandas Foundations.ipynb', 'repo_name': 'rbackupX/myMLpythonProjects', 'size': '1345'}