-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
Fixed Period
and PeriodIndex
formatting
#46361
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
jreback
merged 17 commits into
pandas-dev:main
from
smarie:feature/46252_period_formatting
Mar 18, 2022
Merged
Changes from 16 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
3cc7fac
Added comments and removed useless variable declaration
b5085fe
Fixed #46252. Added comments and updated strftime doc for maintenance…
6460a4f
Code readability: replaced `dt` variables with `p` for "period"
ace7648
Improved doc for `PeriodIndex.strftime`, that is a doc shared with `D…
98daeb2
Fixed build issue (uninit-ed var). Improved test
8299492
What's new update.
8378c8a
whats new
e05fa01
Fixed pre-commit hook: backticks in rst
d3c319b
code review: renamed variable
7b9c52e
Removed the locale related test, will be covered separately (issue #4…
bfbe094
Fixed useless import
46e9f67
Renamed `p` into `per` and removed the docstrings in tests as per cod…
fc64654
Changed type of us, ps into `int32_t` as per code review
d91e12c
inlined constant index as per code review
df8d6e1
Discarding single-letter variable, as per code review
6eecc1b
Discarding single-letter variable, as per code review
0d75f76
Merge branch 'main' of https://github.com/pandas-dev/pandas into feat…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This clarification comes from the fact that on one side we refer to python strftime doc (just above this text), while in the example (line 1623 below) the
%r
directive is used !I checked: neither %r or %R are in the official python doc for strftime, and they are not as well in the extended directives that we support in Period.strftime. But... they work. So this needs explicit clarification I think.