-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
REGR: NotImplementedError: Prefix not defined when slicing offset with loc #47547
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 all commits
5fc5b04
92c499e
e92c3e2
7086415
6572ad2
62abb79
d9fa426
fb11c66
b2ae03d
07af101
54bd158
d6a219b
d9c85e5
693bcc7
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 |
---|---|---|
|
@@ -223,7 +223,12 @@ def _parsed_string_to_bounds(self, reso: Resolution, parsed): | |
|
||
def _parse_with_reso(self, label: str): | ||
# overridden by TimedeltaIndex | ||
parsed, reso_str = parsing.parse_time_string(label, self.freq) | ||
try: | ||
if self.freq is None or hasattr(self.freq, "rule_code"): | ||
freq = self.freq | ||
except NotImplementedError: | ||
phofl marked this conversation as resolved.
Show resolved
Hide resolved
|
||
freq = getattr(self, "freqstr", getattr(self, "inferred_freq", None)) | ||
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. In practice, I don't think we actually run into cases that need this. For example,
This "<DateOffset: days=1>" string is never going to be useful. But in practice, it also seems that
But, so this only is for quarterly offsets, and those do define a rule_code, so you probably don't run into this issue with that kind of freqs. This line 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. I checked passing None if |
||
parsed, reso_str = parsing.parse_time_string(label, freq) | ||
reso = Resolution.from_attrname(reso_str) | ||
return parsed, reso | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.