You've already forked etude_lego_jurassic_world
Ajouter la variante de têtes imprimées et simplifier les graphs globaux
This commit is contained in:
@@ -11,6 +11,7 @@ PARTS_PATH = Path("data/raw/parts.csv")
|
||||
COLORS_PATH = Path("data/raw/colors.csv")
|
||||
SETS_PATH = Path("data/raw/sets.csv")
|
||||
DESTINATION_PATH = Path("data/intermediate/global_minifig_heads_by_year.csv")
|
||||
DESTINATION_PRINTED_PATH = Path("data/intermediate/global_minifig_heads_printed_by_year.csv")
|
||||
|
||||
|
||||
def main() -> None:
|
||||
@@ -23,6 +24,15 @@ def main() -> None:
|
||||
SETS_PATH,
|
||||
)
|
||||
write_global_heads_by_year(DESTINATION_PATH, heads_by_year)
|
||||
heads_printed_by_year = aggregate_global_heads_by_year(
|
||||
INVENTORIES_PATH,
|
||||
INVENTORY_PARTS_PATH,
|
||||
PARTS_PATH,
|
||||
COLORS_PATH,
|
||||
SETS_PATH,
|
||||
require_printed=True,
|
||||
)
|
||||
write_global_heads_by_year(DESTINATION_PRINTED_PATH, heads_printed_by_year)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -6,12 +6,15 @@ from lib.plots.global_minifig_heads import plot_global_head_shares
|
||||
|
||||
|
||||
HEADS_PATH = Path("data/intermediate/global_minifig_heads_by_year.csv")
|
||||
HEADS_PRINTED_PATH = Path("data/intermediate/global_minifig_heads_printed_by_year.csv")
|
||||
DESTINATION_PATH = Path("figures/step17/global_minifig_heads_shares.png")
|
||||
DESTINATION_PRINTED_PATH = Path("figures/step17/global_minifig_heads_printed_shares.png")
|
||||
|
||||
|
||||
def main() -> None:
|
||||
"""Construit la heatmap stackée des parts de couleurs de têtes."""
|
||||
plot_global_head_shares(HEADS_PATH, DESTINATION_PATH)
|
||||
plot_global_head_shares(HEADS_PRINTED_PATH, DESTINATION_PRINTED_PATH)
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
Reference in New Issue
Block a user