Skip to content

Commit 37d8b15

Browse files
author
MarcoGorelli
committed
more simplification
1 parent 3094a53 commit 37d8b15

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pandas/core/tools/datetimes.py

-18
Original file line numberDiff line numberDiff line change
@@ -493,24 +493,6 @@ def _array_strptime_with_fallback(
493493
return _box_as_indexlike(result, utc=utc, name=name)
494494

495495

496-
def _to_datetime_with_format(
497-
arg,
498-
orig_arg,
499-
name,
500-
utc: bool,
501-
fmt: str,
502-
exact: bool,
503-
errors: str,
504-
) -> Index:
505-
"""
506-
Try parsing with the given format.
507-
"""
508-
509-
# fallback
510-
res = _array_strptime_with_fallback(arg, name, utc, fmt, exact, errors)
511-
return res
512-
513-
514496
def _to_datetime_with_unit(arg, unit, name, utc: bool, errors: str) -> Index:
515497
"""
516498
to_datetime specalized to the case where a 'unit' is passed.

0 commit comments

Comments
 (0)