Skip to content

CI: pandas warnings in tests about keyword only arguments #33397

Closed
@TomAugspurger

Description

@TomAugspurger

e.g. https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=32821&view=logs&j=76104ccd-8dcc-5006-a17c-28bcdd709542&t=cd420693-444f-5c55-14e0-1be238e189a1

pandas\tests\io\test_html.py:886
  D:\a\1\s\pandas\tests\io\test_html.py:886: FutureWarning: Starting with Pandas version 2.0 all arguments of read_html except for the argument 'io' will be keyword-only
    result = self.read_html(data, "Arizona", index_col=0)[0]

We'll need to track down places where we're passing positional arguments like

result = self.read_html(data, "Arizona", index_col=0)[0]
and update them to use keyword arguments. That may be the only one, not sure.

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugTestingpandas testing functions or related to the test suiteWarningsWarnings that appear or should be added to pandasgood first issue

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions