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.
ENH: to_datetime support iso week year (16607) Updated #24844
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
ENH: to_datetime support iso week year (16607) Updated #24844
Changes from 4 commits
18edbd6
f3183f0
89921a3
b4f149c
9ee53bd
7c3a305
e99049a
ca9a9b4
a5eff18
fcc11fe
9f2c421
bf693ff
3fd47fe
ba7b895
dd16aa7
145ade2
6449bc1
1fc88c7
abf0824
ece58cb
3f90255
5d1e633
7486808
b9f2e2b
6220d22
32c0a5d
515b0fa
4cbee17
3052eb1
c4cc9fc
534bce9
149138e
da5f5eb
ea013a2
5c40cf2
a0623af
76f5d2d
01483d7
6d7bd98
5e224fb
d4b42c8
25ff472
89dd4d6
3a0fbfd
bb43726
41778b0
fb02c25
f75a220
800d38b
375c790
a814ea4
a488ab8
0d3b4f4
14a2da1
51e6cb1
1fc38f6
d3c9d6e
88318e3
3eccea3
ecc437a
f3f1edd
2199f34
2e38d55
e3b0950
f04bb2f
5db3455
bd58782
2d8f0ab
9cac5a9
efa23ca
776530c
09633b8
93568cc
638ddeb
51fca4c
5278cc6
0535180
683c7b5
2816dba
833bf70
1c57308
cf3ad87
0eddba8
1d1b14c
b08a584
eb2ab3a
04df22f
977bcf8
d7a0964
7ee5b92
f67b7fd
a4f5987
0508d81
2448e52
5f73594
ca5b1df
2c25197
75d5b48
91992ad
28025fd
147b923
6359bbc
57fb83f
ea1d5f5
a9a03a2
ec5f911
64d8948
3ab9318
4d44a2a
a89e19d
b8306f1
6a8e708
b144f66
790e575
4be995c
53281a5
83fe6ca
9de4cc1
33b11b9
ea9848c
eace576
2ce2196
b0dac6c
29008f5
4a20d5b
659e0ca
b90bcb5
f74aba6
3d3093a
590cb54
9561b96
dbe3579
c400bd3
f9cb581
b2c7519
2909b83
f4568fd
66d486e
def8b96
13a505d
6c4cb6f
5449279
9c0f6a8
b673188
fbe67d5
f2fbebd
7408c9b
15d8178
5557e36
3855a27
183dc02
5ae9b48
fc1fe83
df039bf
f59a6ab
85572de
aa08416
fe1654f
1490d0c
c986386
70802c2
3b570e3
84875c1
ece6074
778affc
72367b7
42a6246
e52f063
64e5612
50c40ff
28abbee
f04342a
e9de5f3
169a56a
ae1ab89
db978c7
0a61ecd
9bb98b8
011f0a6
1f8d7e0
1d3b4a5
ae4db86
3e3c901
d708461
cc5b73e
c66028c
ce47205
0c193c6
362f4e5
e6c4f9d
b48d0fb
cf16177
a323f74
cdd66c4
baad263
2fa0c65
42b4c97
149b7f8
bd49d2f
705c442
f85f7a1
1c9de69
3bbcacf
076b5a8
557bae0
2de551f
cb1132c
bd1c7dc
d8d06f9
5accc8f
64dec4c
8f3c92e
ad03061
4d7af48
287f0ed
1c3caf5
12951b9
3c1959c
f8bdc92
f73952d
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
just
week_starts_Mon = week_of_year_start == 0
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.
Nice catch!
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 am not sure we have a doc-refernce to the strptime codes anywhere @mroeschke do you know?
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.
Looks like the reference is here:
pandas/pandas/_libs/tslibs/strptime.pyx
Line 361 in fcc11fe
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.
right so we have a doc reference anywhere though? eg in a doc string for Timestamp / to_datetime and / or in the docs proper?
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.
Yeah looks like the we link to the directives here: https://pandas.pydata.org/pandas-docs/stable/user_guide/timeseries.html#providing-a-format-argument
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 add a more format doc-string (parameters / returns) sections
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 you can update the other _calc_julian one would be great as well
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 split up this file to segregate format parsing into a separate test file, cc @jbrockmendel, @mroeschke