Skip to content

Commit b3dee36

Browse files
authored
ENH: liboffsets support non-nano (#47076)
* ENH: liboffsets support non-nano * fix non-mac buildS * mypy fixup * fix doctest
1 parent d5ba8c0 commit b3dee36

File tree

14 files changed

+194
-131
lines changed

14 files changed

+194
-131
lines changed

asv_bench/benchmarks/arithmetic.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ def time_add_overflow_both_arg_nan(self):
420420

421421

422422
hcal = pd.tseries.holiday.USFederalHolidayCalendar()
423-
# These offsets currently raise a NotImplimentedError with .apply_index()
423+
# These offsets currently raise a NotImplementedError with .apply_index()
424424
non_apply = [
425425
pd.offsets.Day(),
426426
pd.offsets.BYearEnd(),

asv_bench/benchmarks/tslibs/normalize.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,10 @@ def setup(self, size, tz):
3636
raise NotImplementedError
3737

3838
def time_normalize_i8_timestamps(self, size, tz):
39-
normalize_i8_timestamps(self.i8data, tz)
39+
# 10 i.e. NPY_FR_ns
40+
normalize_i8_timestamps(self.i8data, tz, 10)
4041

4142
def time_is_date_array_normalized(self, size, tz):
4243
# TODO: cases with different levels of short-circuiting
43-
is_date_array_normalized(self.i8data, tz)
44+
# 10 i.e. NPY_FR_ns
45+
is_date_array_normalized(self.i8data, tz, 10)

asv_bench/benchmarks/tslibs/offsets.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
pass
1515

1616
hcal = pandas.tseries.holiday.USFederalHolidayCalendar()
17-
# These offsets currently raise a NotImplimentedError with .apply_index()
17+
# These offsets currently raise a NotImplementedError with .apply_index()
1818
non_apply = [
1919
offsets.Day(),
2020
offsets.BYearEnd(),

0 commit comments

Comments
 (0)