File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,11 @@ def first_non_null(values: ndarray) -> int:
431
431
val = values[i]
432
432
if checknull_with_nat_and_na(val):
433
433
continue
434
- if isinstance (val, str ) and (len (val) == 0 or val in nat_strings):
434
+ if (
435
+ isinstance (val, str )
436
+ and
437
+ (len (val) == 0 or val in (" now" , " today" , * nat_strings))
438
+ ):
435
439
continue
436
440
return i
437
441
else :
Original file line number Diff line number Diff line change @@ -2331,6 +2331,8 @@ class TestGuessDatetimeFormat:
2331
2331
["" , "2011-12-30 00:00:00.000000" ],
2332
2332
["NaT" , "2011-12-30 00:00:00.000000" ],
2333
2333
["2011-12-30 00:00:00.000000" , "random_string" ],
2334
+ ["now" , "2011-12-30 00:00:00.000000" ],
2335
+ ["today" , "2011-12-30 00:00:00.000000" ],
2334
2336
],
2335
2337
)
2336
2338
def test_guess_datetime_format_for_array (self , test_list ):
You can’t perform that action at this time.
0 commit comments