-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
CLN: remove unused entries from _lite_rule_alias #56516
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 3 commits
b149d25
d6e259c
df68115
ed3e8f5
e518042
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 |
---|---|---|
|
@@ -236,7 +236,7 @@ def test_partial_slice_second_precision(self): | |
rng = date_range( | ||
start=datetime(2005, 1, 1, 0, 0, 59, microsecond=999990), | ||
periods=20, | ||
freq="US", | ||
freq="us", | ||
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. does this PR make 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.
yes, this test didn't fail for uppercase frequency 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. a small correction to the comment above: |
||
) | ||
s = Series(np.arange(20), rng) | ||
|
||
|
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.
can you remove unrelated changes please?
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.
If we remove these from _
dont_uppercase
the teststest_offset_freqstr()
andtest_rule_code()
inpandas/tests/tseries/offsets/test_offsets.py
will fail. The reason: we uppercase names of offsets class in_get_offset()
. In PR #56346 where we deprecate uppercasing/lowercasing we will remove them from_dont_uppercase
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.
ah, thanks - so, they're not currently unused then? but will become unused once #56346 is enforced? should this PR wait until after that one then?
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.
I checked in PR #56346, we should keep
"min", "us", "ns"
in the list _dont_uppercase to pass these tests.On the other hand, we have all lowercase offsets frequencies in this list (
'h', 's'
, etc.), and it looks more clear then have these entries ("min": "min", "us": "us"
, etc.) in dict_lite_rule_alias
.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.
thanks for explaining
sorry for not having got round to this yet, was quite this week with a client project - but I'll get to it, thanks for looking at it all so carefully!
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.
thank you for helping me with my PRs!