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 50705b3 commit 4730667Copy full SHA for 4730667
src/scanpy/metrics/_metrics.py
@@ -60,9 +60,7 @@ def confusion_matrix(
60
orig, new = pd.Series(orig), pd.Series(new)
61
assert len(orig) == len(new)
62
63
- unique_labels = pd.unique(
64
- np.concatenate((np.asarray(orig.values), np.asarray(new.values)))
65
- )
+ unique_labels = pd.unique(np.concatenate((orig.to_numpy(), new.to_numpy())))
66
67
# Compute
68
mtx = _confusion_matrix(orig, new, labels=unique_labels)
0 commit comments