Skip to content
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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

j-hendricks
Copy link
Contributor

@j-hendricks j-hendricks commented Mar 20, 2025

Part of #11953

Added deprecation warning to Timestamp constructor when ts_input = "".

This addition was motivated by this comment: #11953 (comment)

Copy link
Member

@rhshadrach rhshadrach left a 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.

@pytest.mark.filterwarnings("ignore:indexing past lexsort depth")
@pytest.mark.filterwarnings(
"ignore:indexing past lexsort depth",
"ignore:Passing an empty string to Timestamp",
Copy link
Member

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

@rhshadrach rhshadrach added Deprecate Functionality to remove in pandas Timestamp pd.Timestamp and associated methods Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate labels Mar 29, 2025
@rhshadrach rhshadrach added this to the 3.0 milestone Mar 29, 2025
@j-hendricks j-hendricks requested a review from WillAyd as a code owner March 30, 2025 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deprecate Functionality to remove in pandas Missing-data np.nan, pd.NaT, pd.NA, dropna, isnull, interpolate Timestamp pd.Timestamp and associated methods
Projects
None yet
Development

Successfully merging this pull request may close these issues.

BUG: fillna('') does not replace NaT
3 participants