Skip to content

Commit

Permalink
FIX polars 0.20.4 deprecation warnings (#133)
Browse files Browse the repository at this point in the history
* keyword "columns" in drop is deprecated
  • Loading branch information
lorentzenchr authored Jan 26, 2024
1 parent 64a7f79 commit faaa2c8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/model_diagnostics/scoring/scoring.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
Each scoring function is implemented as a class that needs to be instantiated
before calling the `__call__` methode, e.g. `SquaredError()(y_obs=[1], y_pred=[2])`.
"""

from abc import ABC, abstractmethod
from typing import Any, Callable, Optional

Expand Down Expand Up @@ -931,6 +932,6 @@ def decompose(

# Remove column "model" for a single model.
if n_pred <= 1:
df = df.drop(columns="model")
df = df.drop("model")

return df

0 comments on commit faaa2c8

Please sign in to comment.