-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
21 lines (15 loc) · 659 Bytes
/
Copy pathmain.py
File metadata and controls
21 lines (15 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from SRC.babynames import BabyNames
if __name__ == "__main__":
# Instantiates BabyNames class by creating object b1
b1 = BabyNames()
# Testing pandas DataFrame created in init with return print(self.names_df) in sort_data
print(b1)
# Testing m_f_names subsets, groups, and plots names_df correctly. Yes.
print(b1.m_f_names(1880, 2022))
print(b1.m_f_names(1920, 1950))
# Testing most_popular_ever grouped, subset, and plot correctly. Yes.
print(b1.most_popular_ever())
# Testing unisex grouped, subset, and plot correctly. Yes
print(b1.unisex())
# Testing unisex_evolution
print(b1.unisex_evolution())