Skip to content

Commit 9b55117

Browse files
committed
Addressing code review
- new tests moved to test_timeseries.py and refactored to avoid creating non-standard helper functions
1 parent b30039d commit 9b55117

File tree

3 files changed

+225
-167
lines changed

3 files changed

+225
-167
lines changed

pandas/tseries/index.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -1293,9 +1293,8 @@ def _parsed_string_to_bounds(self, reso, parsed):
12931293

12941294
def _partial_date_slice(self, reso, parsed, use_lhs=True, use_rhs=True):
12951295
is_monotonic = self.is_monotonic
1296-
if (is_monotonic
1297-
and reso in ['day', 'hour', 'minute', 'second']
1298-
and self._resolution >= Resolution.get_reso(reso)):
1296+
if (is_monotonic and reso in ['day', 'hour', 'minute', 'second'] and
1297+
self._resolution >= Resolution.get_reso(reso)):
12991298
# These resolution/monotonicity validations came from GH3931,
13001299
# GH3452 and GH2369.
13011300

pandas/tseries/tests/test_partial_string_indexes.py

-163
This file was deleted.

0 commit comments

Comments
 (0)