code: def remove_dead_chickens(chickweight):
      dead_chickens = (
          chickweight.groupby("chick").size().loc[lambda s: s < 12]
      )
      return chickweight.loc[lambda d: ~d["chick"].isin(dead_chickens)]
  
file_path: scikit-lego/docs/_scripts/pandas-pipelines.py
imports: from pathlib import Path
  import pandas
  import logging
  from sklego.datasets import load_chicken
  from sklego.pandas_utils import log_step
  from sklego.pandas_utils import log_step_extra
label_desc: Use image node_id 4 for calling a global function with example usage: remove_dead_chickens(chickweight) and returns: chickweight