Skip to content

Commit

Permalink
Only select first if only one
Browse files Browse the repository at this point in the history
  • Loading branch information
tingiskhan committed Dec 10, 2024
1 parent 126a0ab commit 212560d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions skyro/sktime.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ def _predict_proba(self, fh, X, marginal=True):
if predictions.name is not None:
warnings.warn(f"Name of the frame will be overwritten with '{columns}'!")

if len(columns) == 1:
columns = columns[0]

as_frame = predictions.to_dataframe(columns)

if predictions.ndim > 2:
Expand Down

0 comments on commit 212560d

Please sign in to comment.