-
-
Notifications
You must be signed in to change notification settings - Fork 18k
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
DOC: Removed line about %S parses all the way up to nanosecond even if no #49349
Merged
Merged
Changes from 1 commit
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
a458ca7
Removed line about %S parses all the way up to nanosecond even if no …
sarvaSanjay f0b7640
Deleted example code and changed documentation to though note that %f…
sarvaSanjay 61fa531
Deleted example code and changed documentation to though note that %f…
sarvaSanjay 70877e7
Fixed CI error
sarvaSanjay 81c758d
Changed to %f
sarvaSanjay de08fcf
Merge branch 'main' into shiny-new-feature
sarvaSanjay c92efe0
Merge branch 'main' into shiny-new-feature
sarvaSanjay 61cc679
Removed line between format and exact
sarvaSanjay 9f5fedd
Merge branch 'main' into shiny-new-feature
sarvaSanjay 47db927
Merge branch 'main' into shiny-new-feature
sarvaSanjay 14d3a84
removed whitespace at end of line
sarvaSanjay f709759
Merge branch 'main' into shiny-new-feature
sarvaSanjay a7e55dd
Re-added formatting to %f
sarvaSanjay 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -787,10 +787,6 @@ def to_datetime( | |
- :const:`"%f"` will parse all the way | ||
up to nanoseconds; | ||
|
||
- :const:`"%S"` without :const:`"%f"` will capture all the way | ||
up to nanoseconds if present as decimal places, and will also handle | ||
the case where the number of seconds is an integer. | ||
|
||
exact : bool, default True | ||
Control how `format` is used: | ||
|
||
|
@@ -969,9 +965,6 @@ def to_datetime( | |
... format='%Y-%m-%d %H:%M:%S.%f') | ||
Timestamp('2018-10-26 12:00:00.000000001') | ||
|
||
:const:`"%S"` without :const:`"%f"` will capture all the way | ||
up to nanoseconds if present as decimal places. | ||
|
||
Comment on lines
-972
to
-974
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. you also need to remove the example code that follows 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. Thank you for bringing this to my notice, I have deleted the example code. |
||
>>> pd.to_datetime('2017-03-22 15:16:45.433502912', | ||
... format='%Y-%m-%d %H:%M:%S') | ||
Timestamp('2017-03-22 15:16:45.433502912') | ||
|
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.
Now, the preceding paragraph says "though note the following difference", but then there's only one difference.
Perhaps we can change it to something like
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, I have made the necessary changes