MCPcopy
hub / github.com/pandas-dev/pandas / _maybe_normalize_endpoints

Function _maybe_normalize_endpoints

pandas/core/arrays/datetimes.py:2890–2900  ·  view source on GitHub ↗
(
    start: _TimestampNoneT1, end: _TimestampNoneT2, normalize: bool
)

Source from the content-addressed store, hash-verified

2888
2889
2890def _maybe_normalize_endpoints(
2891 start: _TimestampNoneT1, end: _TimestampNoneT2, normalize: bool
2892) -> tuple[_TimestampNoneT1, _TimestampNoneT2]:
2893 if normalize:
2894 if start is not None:
2895 start = start.normalize()
2896
2897 if end is not None:
2898 end = end.normalize()
2899
2900 return start, end
2901
2902
2903def _maybe_localize_point(

Callers 1

_generate_rangeMethod · 0.85

Calls 1

normalizeMethod · 0.45

Tested by

no test coverage detected