-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update to be compatible with Pandas 2.2 #72
Conversation
lilio/utils.py
Outdated
if "ME" or "MS" in data_freq: | ||
data_freq = data_freq.replace("ME", "M").replace("MS", "M") |
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.
Do note that this resolves to
(if "ME") or (if "MS" in data_freq)
and if "blabla"
resolves to True. Anything but 0, False, None and empty iterators resolve to True.
But the whole if statement here is not needed, you can move it down to be after the if isinstance(data_freq, str):
.
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.
The only comment on the code is the one I added previously.
Otherwise things look good.
Perhaps it can be nice to see if you can fix the tests on your machine with this PR from Peter: phenology/springtime#164 (comment)
Quality Gate passedIssues Measures |
Fixed the following: