Skip to content

Commit c4c8265

Browse files
atbdAnthony Delannoy
authored and
Anthony Delannoy
committed
API: to_datetime, required unit with numerical (pandas-dev#15836)
* Tests * add test_to_datetime_numerical_input * add fixtures * update bool tests * Check argument * for numerical type * DataFrame with unit
1 parent 1fbdc23 commit c4c8265

File tree

3 files changed

+307
-272
lines changed

3 files changed

+307
-272
lines changed

pandas/_libs/tslib.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2294,7 +2294,7 @@ cpdef array_with_unit_to_datetime(ndarray values, unit, errors='coerce'):
22942294
else:
22952295

22962296
if is_raise:
2297-
raise ValueError("non convertible value {0}"
2297+
raise ValueError("non convertible value {0} "
22982298
"with the unit '{1}'".format(
22992299
val,
23002300
unit))

0 commit comments

Comments
 (0)