<jupyter_start><jupyter_text>2. Handling missing values with function<jupyter_code>#drop NaN(Not a number) values from dataset
drop_s= sum_of_series.dropna()
drop_s
#drop NaN(Not a number) values from zeros(0)
fillna_s = sum_of_series.fillna(0)
fillna_s
#fill values with zeroes before performing addition operations for missing values
fill_NaN_with_zeros_before_sum = first_series.add(secod_series,fill_value=0)
fill_NaN_with_zeros_before_sum<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.07188160676532769, 'fraction_numerical': 0.008456659619450317, 'mean_word_length': 9.533333333333333, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '597876', 'license': 'MIT', 'n_tokens_mistral': 171, 'n_tokens_neox': 167, 'n_words': 39, 'path': 'Data Science With Python/Data Manipulation with Pandas/Missing Values.ipynb', 'repo_name': 'MukundAabha/Data_Science_With_Python', 'size': '473'}