Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@BANADDA
Copy link

@BANADDA BANADDA commented Nov 15, 2025

The from_dataframe function documentation referenced DataFrameXchg type hint which is deprecated. Updated docstrings to use DataFrame and added deprecation notices to clarify that DataFrameXchg type hint is deprecated since pandas 3.0.

Fixes #63111

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.
  • If I used AI to develop this pull request, I prompted it to follow AGENTS.md.

The from_dataframe function documentation referenced DataFrameXchg
type hint which is deprecated. Updated docstrings to use DataFrame
and added deprecation notices to clarify that DataFrameXchg type hint
is deprecated since pandas 3.0.

Fixes pandas-dev#63111
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!

Parameters
----------
df : DataFrameXchg
df : DataFrame
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is DataFrame intended to mean here? Throughout the docs, it means a pandas DataFrame, which isn't appropriate here since the purpose of this function is to convert other DataFrames.

#63111 (comment)

I'd also be fine just documenting this function as deprecated and leaving it as-is until removal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

DOC: from_dataframe contains deprecated parameter DataFrameXchg but is not deprecated itself

2 participants