Skip to content

Commit

Permalink
Simpler warning
Browse files Browse the repository at this point in the history
  • Loading branch information
topper-123 committed Apr 20, 2020
1 parent 28e050e commit dd76ae0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,19 +315,15 @@ def _data(self):
def _AXIS_NUMBERS(self) -> Dict[str, int]:
""".. deprecated:: 1.1.0"""
warnings.warn(
"_AXIS_NUMBERS has been deprecated. Call ._get_axis_number instead",
FutureWarning,
stacklevel=3,
"_AXIS_NUMBERS has been deprecated.", FutureWarning, stacklevel=3,
)
return {"index": 0}

@property
def _AXIS_NAMES(self) -> Dict[int, str]:
""".. deprecated:: 1.1.0"""
warnings.warn(
"_AXIS_NAMES has been deprecated. Call ._get_axis_name instead",
FutureWarning,
stacklevel=3,
"_AXIS_NAMES has been deprecated.", FutureWarning, stacklevel=3,
)
return {0: "index"}

Expand Down

0 comments on commit dd76ae0

Please sign in to comment.