We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e9ee47c commit fef4b09Copy full SHA for fef4b09
pandas/core/common.py
@@ -404,9 +404,13 @@ def array_equivalent(left, right, strict_nan=False):
404
405
Examples
406
--------
407
- >>> array_equivalent(np.array([1, 2, nan]), np.array([1, 2, nan]))
+ >>> array_equivalent(
408
+ ... np.array([1, 2, np.nan]),
409
+ ... np.array([1, 2, np.nan]))
410
True
- >>> array_equivalent(np.array([1, nan, 2]), np.array([1, 2, nan]))
411
412
+ ... np.array([1, np.nan, 2]),
413
414
False
415
"""
416
@@ -2171,8 +2175,8 @@ def iterpairs(seq):
2171
2175
2172
2176
2173
2177
2174
- >>> iterpairs([1, 2, 3, 4])
- [(1, 2), (2, 3), (3, 4)
2178
+ >>> list(iterpairs([1, 2, 3, 4]))
2179
+ [(1, 2), (2, 3), (3, 4)]
2180
2181
# input may not be sliceable
2182
seq_it = iter(seq)
0 commit comments