Skip to content

Commit 262f986

Browse files
committed
Avoid warning about empty Series
diff between pandas 1 and 2. but we can actually just return the result if its empty
1 parent 97d7527 commit 262f986

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphdatascience/model/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def drop(self, failIfMissing: bool = False) -> Series[Any]:
201201
).squeeze()
202202

203203
if result.empty:
204-
return Series()
204+
return result
205205

206206
# modelInfo {.*, modelName: modelName, modelType: modelType} AS modelInfo
207207
result["modelInfo"] = {

0 commit comments

Comments
 (0)