Skip to content
Snippets Groups Projects
Commit 6765f1fc authored by Peter Lünenschloß's avatar Peter Lünenschloß
Browse files

black

parent a58b0d39
No related branches found
No related tags found
6 merge requests!685Release 2.4,!684Release 2.4,!567Release 2.2.1,!566Release 2.2,!501Release 2.1,!400Relase 2.0.1
Pipeline #56274 passed with stages
in 3 minutes and 35 seconds
......@@ -103,7 +103,9 @@ def assignKNNScore(
"""
if isinstance(target, list):
if (len(target) > 1) or (target[0] in data.columns):
raise ValueError(f"'target' must not exist and be of length 1. {target} was passed instead.")
raise ValueError(
f"'target' must not exist and be of length 1. {target} was passed instead."
)
target = target[0]
fields = toSequence(field)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment