We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8e678f commit 8726b6cCopy full SHA for 8726b6c
2 files changed
openml/datasets/dataset.py
@@ -408,6 +408,8 @@ def _unpack_categories(series, categories):
408
col.append(categories[int(x)])
409
except (TypeError, ValueError):
410
col.append(np.nan)
411
+ # We require two lines to create a series of categories as detailed here:
412
+ # https://pandas.pydata.org/pandas-docs/version/0.24/user_guide/categorical.html#series-creation # noqa E501
413
raw_cat = pd.Categorical(col, ordered=True, categories=categories)
414
return pd.Series(raw_cat, index=series.index, name=series.name)
415
openml/runs/run.py
@@ -1,7 +1,7 @@
1
from collections import OrderedDict
2
import pickle
3
import time
4
-from typing import Any, IO, TextIO
+from typing import Any, IO, TextIO # noqa F401
5
import os
6
7
import arff
0 commit comments