Skip to content

Commit c4dab88

Browse files
committed
Test cleanpu
1 parent 1436d1d commit c4dab88

File tree

4 files changed

+2
-48
lines changed

4 files changed

+2
-48
lines changed

pandas/core/internals.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3473,7 +3473,7 @@ def apply(self, f, axes=None, filter=None, do_integrity_check=False,
34733473
else:
34743474
align_keys = []
34753475

3476-
# TODO: may interfere with ExtensionBlock.setitem for blocks
3476+
# TODO(EA): may interfere with ExtensionBlock.setitem for blocks
34773477
# with a .values attribute.
34783478
aligned_args = dict((k, kwargs[k])
34793479
for k in align_keys

pandas/tests/extension/base.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -398,17 +398,12 @@ def test_isna(self, data_missing):
398398
expected = pd.Series(expected)
399399
tm.assert_series_equal(result, expected)
400400

401-
def test_dropna(self, data_missing):
402-
result = pd.Series(data_missing).dropna()
403-
expected = pd.Series(data_missing).iloc[[1]]
404-
tm.assert_series_equal(result, expected)
405-
406401
def test_align(self, data):
407402
a = data[:3]
408403
b = data[2:5]
409404
r1, r2 = pd.Series(a).align(pd.Series(b, index=[1, 2, 3]))
410405

411-
# TODO: assumes that the ctor can take a list of scalars of the type
406+
# Assumes that the ctor can take a list of scalars of the type
412407
e1 = pd.Series(type(data)(list(a) + [data._fill_value]))
413408
e2 = pd.Series(type(data)([data._fill_value] + list(b)))
414409
tm.assert_series_equal(r1, e1)

pandas/tests/extension/test_categorical.py

-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def test_align(self, data):
5050
b = data[2:5]
5151
r1, r2 = pd.Series(a).align(pd.Series(b, index=[1, 2, 3]))
5252

53-
# TODO: assumes that the ctor can take a list of scalars of the type
5453
e1 = pd.Series(type(data)(list(a) + [data._fill_value],
5554
dtype=data.dtype))
5655
e2 = pd.Series(type(data)([data._fill_value] + list(b),

pandas/tests/extension/test_json.py

-40
Original file line numberDiff line numberDiff line change
@@ -133,43 +133,3 @@ def na_cmp(self):
133133
@pytest.mark.skip(reason="Unhashable")
134134
def test_value_counts(self, all_data, dropna):
135135
pass
136-
137-
# @pytest.mark.xfail(reason="Difficulty setting sized objects.")
138-
# def test_set_scalar(self):
139-
# pass
140-
#
141-
142-
@pytest.mark.xfail(reason="Difficulty setting sized objects.")
143-
def test_set_loc_scalar_mixed(self):
144-
# This fails on an np.ndarary(dict) call in _setitem_with_indexer
145-
pass
146-
147-
# @pytest.mark.xfail(reason="Difficulty setting sized objects.")
148-
# def test_set_loc_scalar_single(self):
149-
# pass
150-
#
151-
152-
@pytest.mark.xfail(reason="Difficulty setting sized objects.")
153-
def test_set_loc_scalar_multiple_homogoneous(self):
154-
# This fails in _setitem_with_indexer with a
155-
# ValueError: Must have equal len keys and value when setting with
156-
# and iterable
157-
pass
158-
159-
@pytest.mark.xfail(reason="Difficulty setting sized objects.")
160-
def test_set_iloc_scalar_mixed(self):
161-
# This fails in _setitem_with_indexer with a
162-
# ValueError: Must have equal len keys and value when setting with an
163-
# iterable
164-
pass
165-
166-
# @pytest.mark.xfail(reason="Difficulty setting sized objects.")
167-
# def test_set_iloc_scalar_single(self):
168-
# pass
169-
#
170-
@pytest.mark.xfail(reason="Difficulty setting sized objects.")
171-
def test_set_iloc_scalar_multiple_homogoneous(self):
172-
# this fails in _setitem_with_indexer with a
173-
# ValueError: Must have equal len keys and value when setting with an
174-
# iterable
175-
pass

0 commit comments

Comments
 (0)