-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: DatetimeIndex.is_year_start
and DatetimeIndex.is_quarter_start
always return False on double-digit frequencies
#58549
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
Changes from 1 commit
8c9aaa8
21bd212
9f094d7
670a8db
adaf974
d2fab60
57a834e
d77f248
65e6301
e99a2c6
45a2324
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -587,7 +587,8 @@ cdef class _Timestamp(ABCTimestamp): | |
val = self._maybe_convert_value_to_local() | ||
|
||
out = get_start_end_field(np.array([val], dtype=np.int64), | ||
field, freqstr, month_kw, self._creso) | ||
field, to_offset(freqstr).name , | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. there's already There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. sorry, I am not sure if I understand correctly. I replaced |
||
month_kw, self._creso) | ||
return out[0] | ||
|
||
@property | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -145,8 +145,12 @@ def f(self): | |
kwds = freq.kwds | ||
month_kw = kwds.get("startingMonth", kwds.get("month", 12)) | ||
|
||
if self.freqstr is not None: | ||
freqstr = to_offset(self.freqstr).name | ||
else: | ||
freqstr = self.freqstr | ||
result = fields.get_start_end_field( | ||
values, field, self.freqstr, month_kw, reso=self._creso | ||
values, field, freqstr, month_kw, reso=self._creso | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. done |
||
) | ||
else: | ||
result = fields.get_date_field(values, field, reso=self._creso) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should also rename the variable name now if something else is being passed in (
freq_name
?)