Skip to content

CLN remove unused functions #50394

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

Merged
merged 3 commits into from
Dec 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
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
6 changes: 0 additions & 6 deletions pandas/tests/io/formats/test_format.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
import itertools
import locale
from operator import methodcaller
import os
from pathlib import Path
import re
from shutil import get_terminal_size
Expand Down Expand Up @@ -106,11 +105,6 @@ def _assert_filepath_or_buffer_equals(expected):
return _assert_filepath_or_buffer_equals


def curpath():
pth, _ = os.path.split(os.path.abspath(__file__))
return pth


def has_info_repr(df):
r = repr(df)
c1 = r.split("\n")[0].startswith("<class")
Expand Down
19 changes: 0 additions & 19 deletions pandas/tests/util/test_assert_frame_equal.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,25 +52,6 @@ def _assert_not_frame_equal(a, b, **kwargs):
tm.assert_frame_equal(a, b, **kwargs)


def _assert_not_frame_equal_both(a, b, **kwargs):
"""
Check that two DataFrame are not equal.

This check is performed commutatively.

Parameters
----------
a : DataFrame
The first DataFrame to compare.
b : DataFrame
The second DataFrame to compare.
kwargs : dict
The arguments passed to `tm.assert_frame_equal`.
"""
_assert_not_frame_equal(a, b, **kwargs)
_assert_not_frame_equal(b, a, **kwargs)


@pytest.mark.parametrize("check_like", [True, False])
def test_frame_equal_row_order_mismatch(check_like, obj_fixture):
df1 = DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]}, index=["a", "b", "c"])
Expand Down