Closed ack2406 closed 3 weeks ago
removed unused imports 📦
changed const RELATIVE_FEATURES_DIR to FEATURES_DIR 📁
changed const REMOVE_KIDS to SKIP_TEENS so its more politically correct 🧒
removed unnecesary comments when its turbo obvious what is the thing for like 💬
RELATIVE_FEATURES_DIR = '../data/features' # Relative path to the features directory REMOVE_KIDS = False # Remove kids from the dataset
or
# Loop through each language for language in LANGUAGES:
changed FEATURES_DIR to Path object, so we can skip many casts to Path later. 🌵
made functions to avoid code repetition: 🔁
load_csv()
split_by_gender()
filter_out_teens()
calculate_histogram_and_bins_for_gender()
now colors for male and female are taken from constant COLORS 🌈
Overall comments reduction and refactor up to 3.2.2. Other blocks of code will be refactored in near future 😄
Changed settings for pandas to display more information in single line: 🌮
pd.set_option('display.max_columns', None) pd.set_option('display.width', 1000)
Also added some TODOs for later 🌃
removed unused imports 📦
changed const RELATIVE_FEATURES_DIR to FEATURES_DIR 📁
changed const REMOVE_KIDS to SKIP_TEENS so its more politically correct 🧒
removed unnecesary comments when its turbo obvious what is the thing for like 💬
or
changed FEATURES_DIR to Path object, so we can skip many casts to Path later. 🌵
made functions to avoid code repetition: 🔁
load_csv()
split_by_gender()
filter_out_teens()
calculate_histogram_and_bins_for_gender()
now colors for male and female are taken from constant COLORS 🌈
Overall comments reduction and refactor up to 3.2.2. Other blocks of code will be refactored in near future 😄
Changed settings for pandas to display more information in single line: 🌮
Also added some TODOs for later 🌃