8000 API/ENH: relabel method by chris-b1 · Pull Request #15104 · pandas-dev/pandas · GitHub
[go: up one dir, main page]

Skip to content

API/ENH: relabel method #15104

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

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
catch panel4d warnings
  • Loading branch information
chris-b1 committed Jan 12, 2017
commit db1779b9f343fa40b6030d22306936e135e9e875
4 changes: 3 additions & 1 deletion pandas/core/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,9 @@ def f(x):

See Also
--------
pandas.NDFrame.rename
pandas.Series.rename
pandas.DataFrame.rename
pandas.Panel.rename

Examples
--------
Expand Down
3 changes: 2 additions & 1 deletion pandas/tests/test_generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ def test_relabel(self):
kwargs = {axis: labels for axis in self._axes()}
kwargs['inplace'] = True
result.relabel(**kwargs)

self._compare(result, expected)

for box in [np.array, Series, Index]:
Expand Down Expand Up @@ -1642,7 +1643,7 @@ def test_to_xarray(self):
'test_stat_unexpected_keyword', 'test_api_compat',
'test_stat_non_defaults_args',
'test_clip', 'test_truncate_out_of_bounds', 'test_numpy_clip',
'test_metadata_propagation']:
'test_metadata_propagation', 'test_relabel']:

def f():
def tester(self):
Expand Down
0