Skip to content

CLN: change getargspec -> signature (using from pandas.compat) #12171

Closed
@jreback

Description

@jreback

this eliminates some deprecation warnings

pandas/compat/__init__.py:
  113 :         return inspect.getargspec(f).args

# change here
pandas/tests/series/test_analytics.py:
    4 : from inspect import getargspec
  468 :             if 'numeric_only' in getargspec(f).args:

pandas/util/decorators.py:
  278 :     from inspect import getargspec
  279 :     spec = getargspec(func)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Compatpandas objects compatability with Numpy or Python functions

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions