<jupyter_start><jupyter_text>Functions:  Create a new feature that for mothers first child<jupyter_code>totDF['is_first_child'] = (totDF['prior_living_births']+totDF['prior_dead_births']+totDF['prior_terminations']) <= 0

%time first_child = totDF.mask(totDF['is_first_child'] == False)
%time first_child = totDF.mask(totDF['is_first_child'] == False)<jupyter_output><empty_output><jupyter_text>Time Series Graphs  First child by age group<jupyter_code>plot_gpYR(first_child,'mothers_age_groups','Year giving birth',
          "Mother's Age Group",'Number of First Time Mothers, in Each Age Group ')
plt.savefig('./Saved_Visualizations/mother_1stchild_ts.pdf')
plt.savefig('./Saved_Visualizations/mother_1stchild_ts.png')
plot_gpYR(totDF,'mothers_bmirecode','Year giving birth',
        'Mothers BMI','Mothers BMI over time')<jupyter_output><empty_output><jupyter_text>Plurality over time<jupyter_code>plot_gpYR(totDF,'plurality','Years of birth',
          'Number of cases of Plurality', 'Plurality per year')

plt.savefig('./Saved_Visualizations/plurality_ts.pdf')
plt.savefig('./Saved_Visualizations/plurality_ts.png')<jupyter_output><empty_output><jupyter_text>Age groups  BMI recoded - needs some work<jupyter_code>plot_gpYR(totDF,'mothers_age_groups','Year giving birth',
        'Mothers Age Groups','Ages of Mothers Having Children')

plt.savefig('./Saved_Visualizations/mother_agegroup_ts.pdf')
plt.savefig('./Saved_Visualizations/mother_agegroup_ts.png')<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1290969899665552, 'fraction_numerical': 0.002006688963210702, 'mean_word_length': 8.121951219512194, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 17, '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': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '372688', 'license': 'FTL', 'n_tokens_mistral': 542, 'n_tokens_neox': 516, 'n_words': 81, 'path': 'notebooks/CHTimeSeries.ipynb', 'repo_name': 'ConnorHaas03/CDC_capstone', 'size': '1495'}