@@ -1113,7 +1113,7 @@ def to_series(self, name=None, dropna=False):
1113
1113
b2 5.0
1114
1114
Name: my_name, dtype: float64
1115
1115
1116
- Drop nan values
1116
+ Drop NaN values
1117
1117
1118
1118
>>> arr['b1'] = nan
1119
1119
>>> arr
@@ -5139,9 +5139,9 @@ def equals(self, other, rtol=0, atol=0, nans_equal=False, check_axes=False):
5139
5139
atol : float or int, optional
5140
5140
The absolute tolerance parameter (see Notes). Defaults to 0.
5141
5141
nans_equal : boolean, optional
5142
- Whether or not to consider nan values at the same positions in the two arrays as equal.
5143
- By default, an array containing nan values is never equal to another array, even if that other array
5144
- also contains nan values at the same positions. The reason is that a nan value is different from
5142
+ Whether or not to consider NaN values at the same positions in the two arrays as equal.
5143
+ By default, an array containing NaN values is never equal to another array, even if that other array
5144
+ also contains NaN values at the same positions. The reason is that a NaN value is different from
5145
5145
*anything*, including itself. Defaults to False.
5146
5146
check_axes : boolean, optional
5147
5147
Whether or not to check that the set of axes and their order is the same on both sides. Defaults to False.
@@ -5201,7 +5201,7 @@ def equals(self, other, rtol=0, atol=0, nans_equal=False, check_axes=False):
5201
5201
>>> arr2.equals(arr1, rtol=0.01)
5202
5202
True
5203
5203
5204
- Arrays with nan values
5204
+ Arrays with NaN values
5205
5205
5206
5206
>>> arr1 = ndtest((2, 3), dtype=float)
5207
5207
>>> arr1['a1', 'b1'] = nan
@@ -5210,9 +5210,9 @@ def equals(self, other, rtol=0, atol=0, nans_equal=False, check_axes=False):
5210
5210
a0 0.0 1.0 2.0
5211
5211
a1 3.0 nan 5.0
5212
5212
>>> arr2 = arr1.copy()
5213
- >>> # By default, an array containing nan values is never equal to another array,
5214
- >>> # even if that other array also contains nan values at the same positions.
5215
- >>> # The reason is that a nan value is different from *anything*, including itself.
5213
+ >>> # By default, an array containing NaN values is never equal to another array,
5214
+ >>> # even if that other array also contains NaN values at the same positions.
5215
+ >>> # The reason is that a NaN value is different from *anything*, including itself.
5216
5216
>>> arr2.equals(arr1)
5217
5217
False
5218
5218
>>> # set flag nans_equal to True to overwrite this behavior
@@ -5271,16 +5271,16 @@ def eq(self, other, rtol=0, atol=0, nans_equal=False):
5271
5271
atol : float or int, optional
5272
5272
The absolute tolerance parameter (see Notes). Defaults to 0.
5273
5273
nans_equal : boolean, optional
5274
- Whether or not to consider nan values at the same positions in the two arrays as equal.
5275
- By default, an array containing nan values is never equal to another array, even if that other array
5276
- also contains nan values at the same positions. The reason is that a nan value is different from
5274
+ Whether or not to consider Nan values at the same positions in the two arrays as equal.
5275
+ By default, an array containing NaN values is never equal to another array, even if that other array
5276
+ also contains NaN values at the same positions. The reason is that a NaN value is different from
5277
5277
*anything*, including itself. Defaults to False.
5278
5278
5279
5279
Returns
5280
5280
-------
5281
5281
LArray
5282
5282
Boolean array where each cell tells whether corresponding elements of self and other are equal
5283
- within a tolerance range if given. If nans_equal=True, corresponding elements with nan values
5283
+ within a tolerance range if given. If nans_equal=True, corresponding elements with NaN values
5284
5284
will be considered as equal.
5285
5285
5286
5286
See Also
0 commit comments