|
25 | 25 | )
|
26 | 26 | import pandas.core.common as com
|
27 | 27 | from pandas.core.indexing import IndexingError
|
28 |
| -from pandas.tests.frame.common import TestData |
29 | 28 | import pandas.util.testing as tm
|
30 | 29 | from pandas.util.testing import (
|
31 | 30 | assert_almost_equal,
|
|
36 | 35 | from pandas.tseries.offsets import BDay
|
37 | 36 |
|
38 | 37 |
|
39 |
| -class TestDataFrameIndexing(TestData): |
| 38 | +class TestDataFrameIndexing: |
40 | 39 | def test_getitem(self, float_frame):
|
41 | 40 | # Slicing
|
42 | 41 | sl = float_frame[:20]
|
@@ -1167,8 +1166,8 @@ def test_setitem_fancy_mixed_2d(self, float_string_frame):
|
1167 | 1166 |
|
1168 | 1167 | with catch_warnings(record=True):
|
1169 | 1168 | simplefilter("ignore", FutureWarning)
|
1170 |
| - self.mixed_frame.ix[:5, ["C", "B", "A"]] = 5 |
1171 |
| - result = self.mixed_frame.ix[:5, ["C", "B", "A"]] |
| 1169 | + float_string_frame.ix[:5, ["C", "B", "A"]] = 5 |
| 1170 | + result = float_string_frame.ix[:5, ["C", "B", "A"]] |
1172 | 1171 | assert (result.values == 5).all()
|
1173 | 1172 |
|
1174 | 1173 | float_string_frame.ix[5] = np.nan
|
@@ -3402,7 +3401,7 @@ def test_interval_index(self):
|
3402 | 3401 | assert_series_equal(result, expected)
|
3403 | 3402 |
|
3404 | 3403 |
|
3405 |
| -class TestDataFrameIndexingDatetimeWithTZ(TestData): |
| 3404 | +class TestDataFrameIndexingDatetimeWithTZ: |
3406 | 3405 | def test_setitem(self, timezone_frame):
|
3407 | 3406 |
|
3408 | 3407 | df = timezone_frame
|
@@ -3461,7 +3460,7 @@ def test_scalar_assignment(self):
|
3461 | 3460 | tm.assert_frame_equal(df, expected)
|
3462 | 3461 |
|
3463 | 3462 |
|
3464 |
| -class TestDataFrameIndexingUInt64(TestData): |
| 3463 | +class TestDataFrameIndexingUInt64: |
3465 | 3464 | def test_setitem(self, uint64_frame):
|
3466 | 3465 |
|
3467 | 3466 | df = uint64_frame
|
|
0 commit comments