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

Remove deprecated arguments and functions #307

Merged
merged 1 commit into from
Sep 17, 2022
Merged

Conversation

phofl
Copy link
Member

@phofl phofl commented Sep 16, 2022

  • Closes #xxxx (Replace xxxx with the Github issue number)
  • Tests added: Please use assert_type() to assert the type of any return value

This is for the 1.4 deprecations

# Conflicts:
#	pandas-stubs/core/frame.pyi
#	pandas-stubs/core/generic.pyi
#	pandas-stubs/core/groupby/groupby.pyi
#	pandas-stubs/core/indexes/datetimes.pyi
#	pandas-stubs/core/indexes/timedeltas.pyi
#	pandas-stubs/core/resample.pyi
#	pandas-stubs/core/series.pyi
#	pandas-stubs/core/window/rolling.pyi
#	pandas-stubs/io/formats/style.pyi
#	pandas-stubs/io/parsers.pyi
#	tests/test_pandas.py
Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

some minor comments and a question

pandas-stubs/core/groupby/groupby.pyi Show resolved Hide resolved
pandas-stubs/core/groupby/groupby.pyi Show resolved Hide resolved
pandas-stubs/core/indexes/base.pyi Show resolved Hide resolved
@@ -15,6 +15,7 @@ from pandas._typing import (

def read_xml(
path_or_buffer: FilePath | ReadBuffer[bytes] | ReadBuffer[str],
*,
Copy link
Collaborator

Choose a reason for hiding this comment

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

Not clear why you added this??

Copy link
Member Author

Choose a reason for hiding this comment

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

We deprecated passing positional arguments to read_xml in 1.4

Deprecated passing arguments as positional for read_xml() other than path_or_buffer (GH45133)

Copy link
Collaborator

Choose a reason for hiding this comment

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

OK, the docs don't say anything about that, so maybe the docs should be updated as well.

Copy link
Member Author

Choose a reason for hiding this comment

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

I think we are not mentioning positional deprecations in the docs

@phofl
Copy link
Member Author

phofl commented Sep 17, 2022

Opened pandas-dev/pandas#48599 to add deprecation flags in the docs

Copy link
Collaborator

@Dr-Irv Dr-Irv left a comment

Choose a reason for hiding this comment

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

thanks @phofl

@Dr-Irv Dr-Irv merged commit 1f597d3 into pandas-dev:main Sep 17, 2022
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.

2 participants