Skip to content

Commit 32aa089

Browse files
committed
DOC/TST: trivial changes
1 parent b1f46f8 commit 32aa089

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

doc/source/whatsnew/v0.21.0.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,8 @@ Other Enhancements
128128
- :func:`DataFrame.add_prefix` and :func:`DataFrame.add_suffix` now accept strings containing the '%' character. (:issue:`17151`)
129129
- `read_*` methods can now infer compression from non-string paths, such as ``pathlib.Path`` objects (:issue:`17206`).
130130
- :func:`pd.read_sas()` now recognizes much more of the most frequently used date (datetime) formats in SAS7BDAT files (:issue:`15871`).
131-
- :func:`DataFrame.items` is present in both Python 2 and 3 and is lazy in all cases (:issue:`13918`, :issue:`17213`)
131+
- :func:`DataFrame.items` is now present in both Python 2 and 3 and is lazy in all cases (:issue:`13918`, :issue:`17213`)
132+
132133

133134

134135
.. _whatsnew_0210.api_breaking:

pandas/tests/frame/test_api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,15 +171,15 @@ def test_nonzero(self):
171171
def test_iteritems(self):
172172
df = self.klass([[1, 2, 3], [4, 5, 6]], columns=['a', 'a', 'b'])
173173
for k, v in compat.iteritems(df):
174-
assert type(v) == self.klass._constructor_sliced
174+
assert isinstance(v, self.klass._constructor_sliced)
175175

176176
def test_items(self):
177177
# issue #17213, #13918
178178
cols = ['a', 'b', 'c']
179179
df = DataFrame([[1, 2, 3], [4, 5, 6]], columns=cols)
180180
for c, (k, v) in zip(cols, df.items()):
181181
assert c == k
182-
assert type(v) == Series
182+
assert isinstance(v, Series)
183183
assert (df[k] == v).all()
184184

185185
def test_iter(self):

0 commit comments

Comments
 (0)