Skip to content

Commit 7c0278e

Browse files
authored
PERF first-non-null (pandas-dev#50092)
perf Co-authored-by: MarcoGorelli <>
1 parent bc987e7 commit 7c0278e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pandas/_libs/tslib.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ def first_non_null(values: ndarray) -> int:
434434
if (
435435
isinstance(val, str)
436436
and
437-
(len(val) == 0 or val in ("now", "today", *nat_strings))
437+
(len(val) == 0 or val in nat_strings or val in ("now", "today"))
438438
):
439439
continue
440440
return i

0 commit comments

Comments
 (0)