Python, Pandas, Data Science, Climate Change, Matplotlib.
sub_dataframes: list[pd.DataFrame] = [] for athlete, parameter in product(["Bob", "Alice"], ["heart_rate", "cadence"]): sub_df = values[athlete][parameter].to_frame("values") sub_df["athlete"] = athlete sub_df["parameter"] = parameter sub_dataframes.append(sub_df) df =