Skip to content

Commit fef4b09

Browse files
BUG: fix doctests in pandas.core.common
$ nosetests pandas/core/common.py --with-doc -v
1 parent e9ee47c commit fef4b09

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

pandas/core/common.py

+8-4
Original file line numberDiff line numberDiff line change
@@ -404,9 +404,13 @@ def array_equivalent(left, right, strict_nan=False):
404404
405405
Examples
406406
--------
407-
>>> array_equivalent(np.array([1, 2, nan]), np.array([1, 2, nan]))
407+
>>> array_equivalent(
408+
... np.array([1, 2, np.nan]),
409+
... np.array([1, 2, np.nan]))
408410
True
409-
>>> array_equivalent(np.array([1, nan, 2]), np.array([1, 2, nan]))
411+
>>> array_equivalent(
412+
... np.array([1, np.nan, 2]),
413+
... np.array([1, 2, np.nan]))
410414
False
411415
"""
412416

@@ -2171,8 +2175,8 @@ def iterpairs(seq):
21712175
21722176
Examples
21732177
--------
2174-
>>> iterpairs([1, 2, 3, 4])
2175-
[(1, 2), (2, 3), (3, 4)
2178+
>>> list(iterpairs([1, 2, 3, 4]))
2179+
[(1, 2), (2, 3), (3, 4)]
21762180
"""
21772181
# input may not be sliceable
21782182
seq_it = iter(seq)

0 commit comments

Comments
 (0)