Skip to content
4 changes: 2 additions & 2 deletions modelskill/comparison/_collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -1000,7 +1000,7 @@ def score(
if skill is None:
return None

df = skill.df
df = skill.to_dataframe()

if n_models == 1:
score = df[metric.__name__].values.mean()
Expand Down Expand Up @@ -1053,7 +1053,7 @@ def taylor(
skill_func = cmp.mean_skill if aggregate_observations else cmp.skill
s = skill_func(metrics=metrics)

df = s.df
df = s.to_dataframe()
ref_std = 1.0 if normalize_std else df.iloc[0]["_std_obs"]

if isinstance(df.index, pd.MultiIndex):
Expand Down
Loading