Skip to content

ENH: liboffsets support non-nano #47076

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion asv_bench/benchmarks/arithmetic.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def time_add_overflow_both_arg_nan(self):


hcal = pd.tseries.holiday.USFederalHolidayCalendar()
# These offsets currently raise a NotImplimentedError with .apply_index()
# These offsets currently raise a NotImplementedError with .apply_index()
non_apply = [
pd.offsets.Day(),
pd.offsets.BYearEnd(),
Expand Down
6 changes: 4 additions & 2 deletions asv_bench/benchmarks/tslibs/normalize.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ def setup(self, size, tz):
raise NotImplementedError

def time_normalize_i8_timestamps(self, size, tz):
normalize_i8_timestamps(self.i8data, tz)
# 10 i.e. NPY_FR_ns
normalize_i8_timestamps(self.i8data, tz, 10)

def time_is_date_array_normalized(self, size, tz):
# TODO: cases with different levels of short-circuiting
is_date_array_normalized(self.i8data, tz)
# 10 i.e. NPY_FR_ns
is_date_array_normalized(self.i8data, tz, 10)
2 changes: 1 addition & 1 deletion asv_bench/benchmarks/tslibs/offsets.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
pass

hcal = pandas.tseries.holiday.USFederalHolidayCalendar()
# These offsets currently raise a NotImplimentedError with .apply_index()
# These offsets currently raise a NotImplementedError with .apply_index()
non_apply = [
offsets.Day(),
offsets.BYearEnd(),
Expand Down
Loading