Skip to content

Commit 49ceb1b

Browse files
CLN remove unused functions (#50394)
* cln-remove-50393 * pre-commit issue solved * reverted back _check_cast() Co-authored-by: Shashwat <shashwat>
1 parent be2a09e commit 49ceb1b

File tree

2 files changed

+0
-25
lines changed

2 files changed

+0
-25
lines changed

pandas/tests/io/formats/test_format.py

-6
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
import itertools
1212
import locale
1313
from operator import methodcaller
14-
import os
1514
from pathlib import Path
1615
import re
1716
from shutil import get_terminal_size
@@ -106,11 +105,6 @@ def _assert_filepath_or_buffer_equals(expected):
106105
return _assert_filepath_or_buffer_equals
107106

108107

109-
def curpath():
110-
pth, _ = os.path.split(os.path.abspath(__file__))
111-
return pth
112-
113-
114108
def has_info_repr(df):
115109
r = repr(df)
116110
c1 = r.split("\n")[0].startswith("<class")

pandas/tests/util/test_assert_frame_equal.py

-19
Original file line numberDiff line numberDiff line change
@@ -52,25 +52,6 @@ def _assert_not_frame_equal(a, b, **kwargs):
5252
tm.assert_frame_equal(a, b, **kwargs)
5353

5454

55-
def _assert_not_frame_equal_both(a, b, **kwargs):
56-
"""
57-
Check that two DataFrame are not equal.
58-
59-
This check is performed commutatively.
60-
61-
Parameters
62-
----------
63-
a : DataFrame
64-
The first DataFrame to compare.
65-
b : DataFrame
66-
The second DataFrame to compare.
67-
kwargs : dict
68-
The arguments passed to `tm.assert_frame_equal`.
69-
"""
70-
_assert_not_frame_equal(a, b, **kwargs)
71-
_assert_not_frame_equal(b, a, **kwargs)
72-
73-
7455
@pytest.mark.parametrize("check_like", [True, False])
7556
def test_frame_equal_row_order_mismatch(check_like, obj_fixture):
7657
df1 = DataFrame({"A": [1, 2, 3], "B": [4, 5, 6]}, index=["a", "b", "c"])

0 commit comments

Comments
 (0)