-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
BUG: Added deprecation warning to Timestamp constructor #61149
base: main
Are you sure you want to change the base?
BUG: Added deprecation warning to Timestamp constructor #61149
Conversation
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 for the PR! Can you add a note to the whatsnew of v3.0.0 in the deprecation section.
pandas/tests/indexing/test_loc.py
Outdated
@pytest.mark.filterwarnings("ignore:indexing past lexsort depth") | ||
@pytest.mark.filterwarnings( | ||
"ignore:indexing past lexsort depth", | ||
"ignore:Passing an empty string to Timestamp", |
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.
Instead of ignoring in each of these tests, can you test the warning. See
https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#testing-a-warning
…dricks/pandas into add-warning-timestamp-blank-string
Part of #11953
Added deprecation warning to Timestamp constructor when
ts_input = ""
.This addition was motivated by this comment: #11953 (comment)
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.