@@ -1211,7 +1211,7 @@ def to_series(self, name=None, dropna=False):
1211
1211
b2 5.0
1212
1212
Name: my_name, dtype: float64
1213
1213
1214
- Drop nan values
1214
+ Drop NaN values
1215
1215
1216
1216
>>> arr['b1'] = nan
1217
1217
>>> arr
@@ -5615,9 +5615,9 @@ def equals(self, other, rtol=0, atol=0, nans_equal=False, check_axes=False):
5615
5615
atol : float or int, optional
5616
5616
The absolute tolerance parameter (see Notes). Defaults to 0.
5617
5617
nans_equal : boolean, optional
5618
- Whether or not to consider nan values at the same positions in the two arrays as equal.
5619
- By default, an array containing nan values is never equal to another array, even if that other array
5620
- also contains nan values at the same positions. The reason is that a nan value is different from
5618
+ Whether or not to consider NaN values at the same positions in the two arrays as equal.
5619
+ By default, an array containing NaN values is never equal to another array, even if that other array
5620
+ also contains NaN values at the same positions. The reason is that a NaN value is different from
5621
5621
*anything*, including itself. Defaults to False.
5622
5622
check_axes : boolean, optional
5623
5623
Whether or not to check that the set of axes and their order is the same on both sides. Defaults to False.
@@ -5677,7 +5677,7 @@ def equals(self, other, rtol=0, atol=0, nans_equal=False, check_axes=False):
5677
5677
>>> arr2.equals(arr1, rtol=0.01)
5678
5678
True
5679
5679
5680
- Arrays with nan values
5680
+ Arrays with NaN values
5681
5681
5682
5682
>>> arr1 = ndtest((2, 3), dtype=float)
5683
5683
>>> arr1['a1', 'b1'] = nan
@@ -5686,9 +5686,9 @@ def equals(self, other, rtol=0, atol=0, nans_equal=False, check_axes=False):
5686
5686
a0 0.0 1.0 2.0
5687
5687
a1 3.0 nan 5.0
5688
5688
>>> arr2 = arr1.copy()
5689
- >>> # By default, an array containing nan values is never equal to another array,
5690
- >>> # even if that other array also contains nan values at the same positions.
5691
- >>> # The reason is that a nan value is different from *anything*, including itself.
5689
+ >>> # By default, an array containing NaN values is never equal to another array,
5690
+ >>> # even if that other array also contains NaN values at the same positions.
5691
+ >>> # The reason is that a NaN value is different from *anything*, including itself.
5692
5692
>>> arr2.equals(arr1)
5693
5693
False
5694
5694
>>> # set flag nans_equal to True to overwrite this behavior
@@ -5747,16 +5747,16 @@ def eq(self, other, rtol=0, atol=0, nans_equal=False):
5747
5747
atol : float or int, optional
5748
5748
The absolute tolerance parameter (see Notes). Defaults to 0.
5749
5749
nans_equal : boolean, optional
5750
- Whether or not to consider nan values at the same positions in the two arrays as equal.
5751
- By default, an array containing nan values is never equal to another array, even if that other array
5752
- also contains nan values at the same positions. The reason is that a nan value is different from
5750
+ Whether or not to consider Nan values at the same positions in the two arrays as equal.
5751
+ By default, an array containing NaN values is never equal to another array, even if that other array
5752
+ also contains NaN values at the same positions. The reason is that a NaN value is different from
5753
5753
*anything*, including itself. Defaults to False.
5754
5754
5755
5755
Returns
5756
5756
-------
5757
5757
LArray
5758
5758
Boolean array where each cell tells whether corresponding elements of self and other are equal
5759
- within a tolerance range if given. If nans_equal=True, corresponding elements with nan values
5759
+ within a tolerance range if given. If nans_equal=True, corresponding elements with NaN values
5760
5760
will be considered as equal.
5761
5761
5762
5762
See Also
0 commit comments