You've already forked etude_lego_jurassic_world
Ajoute l’étape 25 de répartition des minifigs par genre
This commit is contained in:
@@ -7,22 +7,10 @@ import matplotlib.pyplot as plt
|
||||
from matplotlib.patches import Patch
|
||||
|
||||
from lib.filesystem import ensure_parent_dir
|
||||
from lib.plots.gender_palette import GENDER_COLORS, GENDER_LABELS
|
||||
from lib.rebrickable.stats import read_rows
|
||||
|
||||
|
||||
GENDER_COLORS = {
|
||||
"male": "#4c72b0",
|
||||
"female": "#c44e52",
|
||||
"unknown": "#7f7f7f",
|
||||
}
|
||||
GENDER_LABELS = {
|
||||
"male": "Homme",
|
||||
"female": "Femme",
|
||||
"unknown": "Inconnu",
|
||||
"": "Inconnu",
|
||||
}
|
||||
|
||||
|
||||
def load_counts(path: Path) -> List[dict]:
|
||||
"""Charge le CSV des comptes par personnage."""
|
||||
return read_rows(path)
|
||||
|
||||
Reference in New Issue
Block a user