-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
BUG: parsed datetime string resolution incorrect #38118
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
Conversation
I was working today with datetime index, you have the reso (resolutions) defined from year to nanosecond, but then you had the lines 560-570 repeating 'minute' and 'second', and working with millisecond or nanosecond raises a KeyIndex error.
Hello @boringow! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:
|
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 test(s)? That's the first thing we look for when reviewing
Hi @arw2019 , I have only 4 months of programming experience, and not more than 3 weeks of using Github. By adding a test you mean adding a small example? can I copy paste it here on the comments? |
Welcome to pandas! We encourage new contributors and we'll guide you through the process of completing the pull request.
Can I suggest that you open a github issue with the small example and the output you expect? Reference this pull request in the issue and we'll take it from there. |
Okay! I am going to do so 👍 |
done :) |
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 test for this that fails on master and this fixes
I added the test on the issue related to this bug, I tagged you in there, that example is from the master, and this code fixes. |
Can you add "- Closes #38121" to the description at the top of this PR? Then GitHub will link this to the issue As per #38121 (comment) the snippet you provided is too long/complicated - we need the reproducer to be simple and concise. Please trim it down to localize the bug you're fixing. Once you have a small reproducer, you will need to add that test to our testing suite, in the |
Hi @boringow - is this still active? If so, could you please address the comments above. First things first, you'll need to write a test - see the contributing guide
|
This pull request is stale because it has been open for thirty days with no activity. Please update or respond to this comment if you're still interested in working on this. |
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.
@boringow if you'd like to pick this up the process is:
- write a unit test. This should be a code snippet that fails on master but passes after your patch. Add the test to a location in
pandas/testing
directory that houses similar tests - come up with a fix - that's done
we'll then circle back to review and when the patch is approved we'll merge.
Closing for now as this doesn't seem active but ping us if you'd like to pick this up and we'll reopen!
Is it finally closed?
I did a test and everything requested, but you requested more.
El dom, 24 ene 2021 a las 2:22, Andrew Wieteska (<[email protected]>)
escribió:
… Closed #38118 <#38118>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#38118 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOZXKJVYWY7KIF6DWRI7PLDS3NY4ZANCNFSM4UFFJJYQ>
.
|
I was working today with datetime index, you have the reso (resolutions) defined from year to nanosecond, but then you had the lines 560-570 repeating 'minute' and 'second', and working with millisecond or nanosecond raises a KeyIndex error.
black pandas
git diff upstream/master -u -- "*.py" | flake8 --diff