-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
remove read_excel keyword NotImplemented error, update documentation #11544 #12051
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
+++++++++++++ | ||
|
||
The `parse_dates` keyword for `read_excel` is used to specify whether to parse strings | ||
to a datetime. |
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.
Maybe note specifically that you do no need to use this when the data are formatted as dates in the excel file.
@grahamjeffries Thanks for working on this! I am only not sure why you changed many of the tests by adding |
Okay, I'll change the warning so that it is raised only when Re: changes to the tests, in PR #11870 I removed those arguments in the test to avoid raising the |
For the tests, if it does not make a difference, you don't need to add this back. Rather try to add a test where it does make a difference, so we test the functionality explicitly. |
@grahamjeffries can you update |
can you update according to @jorisvandenbossche comments (and rebase) |
@grahamjeffries Do you have time to update this? |
this would be nice for 0.18.0, but not going to hold us up |
@@ -481,7 +481,7 @@ Bug Fixes | |||
- Bug in ``df.replace`` while replacing value in mixed dtype ``Dataframe`` (:issue:`11698`) | |||
- Bug in ``Index`` prevents copying name of passed ``Index``, when a new name is not provided (:issue:`11193`) | |||
- Bug in ``read_excel`` failing to read any non-empty sheets when empty sheets exist and ``sheetname=None`` (:issue:`11711`) | |||
- Bug in ``read_excel`` failing to raise ``NotImplemented`` error when keywords ``parse_dates`` and ``date_parser`` are provided (:issue:`11544`) | |||
- Bug in ``read_excel`` failing to raise warning when keyword ``parse_dates`` and is provided without keyword ``index_col`` (:issue:`11544`) |
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.
move to 0.18.1
@grahamjeffries can you rebase / update |
@grahamjeffries Do you have some time to update/rebase this? |
status of this? needs a rebase |
Either this should be merged, or I should fix the docs that use this keyword (now error during doc build), so I would keep it at the 0.19.0 milestone for now to remember that |
can you rebase / update? |
@grahamjeffries can you rebase / update this? |
I rebased and updated this in #14326 |
Rebase and update of PR pandas-dev#12051 Author: Joris Van den Bossche <[email protected]> Author: Graham R. Jeffries <[email protected]> This patch had conflicts when merged, resolved by Committer: Jeff Reback <[email protected]> Closes pandas-dev#14326 from jorisvandenbossche/pr/12051 and squashes the following commits: 0b65a7a [Joris Van den Bossche] update wording 656ec44 [Joris Van den Bossche] Fix detection to raise warning b1c7f87 [Joris Van den Bossche] add whatsnew 925ce1b [Joris Van den Bossche] Update tests 0e10a9d [Graham R. Jeffries] remove read_excel kwd NotImplemented error, update documentation pandas-dev#11544
Rebase and update of PR #12051 Author: Joris Van den Bossche <[email protected]> Author: Graham R. Jeffries <[email protected]> This patch had conflicts when merged, resolved by Committer: Jeff Reback <[email protected]> Closes #14326 from jorisvandenbossche/pr/12051 and squashes the following commits: 0b65a7a [Joris Van den Bossche] update wording 656ec44 [Joris Van den Bossche] Fix detection to raise warning b1c7f87 [Joris Van den Bossche] add whatsnew 925ce1b [Joris Van den Bossche] Update tests 0e10a9d [Graham R. Jeffries] remove read_excel kwd NotImplemented error, update documentation #11544
Rebase and update of PR #12051 Author: Joris Van den Bossche <[email protected]> Author: Graham R. Jeffries <[email protected]> This patch had conflicts when merged, resolved by Committer: Jeff Reback <[email protected]> Closes #14326 from jorisvandenbossche/pr/12051 and squashes the following commits: 0b65a7a [Joris Van den Bossche] update wording 656ec44 [Joris Van den Bossche] Fix detection to raise warning b1c7f87 [Joris Van den Bossche] add whatsnew 925ce1b [Joris Van den Bossche] Update tests 0e10a9d [Graham R. Jeffries] remove read_excel kwd NotImplemented error, update documentation #11544
Rebase and update of PR pandas-dev#12051 Author: Joris Van den Bossche <[email protected]> Author: Graham R. Jeffries <[email protected]> This patch had conflicts when merged, resolved by Committer: Jeff Reback <[email protected]> Closes pandas-dev#14326 from jorisvandenbossche/pr/12051 and squashes the following commits: 0b65a7a [Joris Van den Bossche] update wording 656ec44 [Joris Van den Bossche] Fix detection to raise warning b1c7f87 [Joris Van den Bossche] add whatsnew 925ce1b [Joris Van den Bossche] Update tests 0e10a9d [Graham R. Jeffries] remove read_excel kwd NotImplemented error, update documentation pandas-dev#11544
Followed up in #14326
Towards fixing bug #11544, with respect to comments on merged PR #11870.
I've removed the
NotImplemented
error forparse_dates
anddate_parser
keywords inread_excel
, seeing that they are implemented (see discussion in #11870). I've added an example of the intended functionality in the documentation