@@ -19,7 +19,7 @@ def reduce(
19
19
dim : Dims = None ,
20
20
* ,
21
21
axis : int | Sequence [int ] | None = None ,
22
- keep_attrs : bool | None = None ,
22
+ keep_attrs : bool = True ,
23
23
keepdims : bool = False ,
24
24
** kwargs : Any ,
25
25
) -> Self :
@@ -29,7 +29,7 @@ def count(
29
29
self ,
30
30
dim : Dims = None ,
31
31
* ,
32
- keep_attrs : bool | None = None ,
32
+ keep_attrs : bool = True ,
33
33
** kwargs : Any ,
34
34
) -> Self :
35
35
"""
@@ -40,7 +40,7 @@ def count(
40
40
dim : str, Iterable of Hashable, "..." or None, default: None
41
41
Name of dimension[s] along which to apply ``count``. For e.g. ``dim="x"``
42
42
or ``dim=["x", "y"]``. If "..." or None, will reduce over all dimensions.
43
- keep_attrs : bool or None , optional
43
+ keep_attrs : bool, optional
44
44
If True, ``attrs`` will be copied from the original
45
45
object to the new one. If False, the new object will be
46
46
returned without attributes.
@@ -90,7 +90,7 @@ def all(
90
90
self ,
91
91
dim : Dims = None ,
92
92
* ,
93
- keep_attrs : bool | None = None ,
93
+ keep_attrs : bool = True ,
94
94
** kwargs : Any ,
95
95
) -> Self :
96
96
"""
@@ -101,7 +101,7 @@ def all(
101
101
dim : str, Iterable of Hashable, "..." or None, default: None
102
102
Name of dimension[s] along which to apply ``all``. For e.g. ``dim="x"``
103
103
or ``dim=["x", "y"]``. If "..." or None, will reduce over all dimensions.
104
- keep_attrs : bool or None , optional
104
+ keep_attrs : bool, optional
105
105
If True, ``attrs`` will be copied from the original
106
106
object to the new one. If False, the new object will be
107
107
returned without attributes.
@@ -151,7 +151,7 @@ def any(
151
151
self ,
152
152
dim : Dims = None ,
153
153
* ,
154
- keep_attrs : bool | None = None ,
154
+ keep_attrs : bool = True ,
155
155
** kwargs : Any ,
156
156
) -> Self :
157
157
"""
@@ -162,7 +162,7 @@ def any(
162
162
dim : str, Iterable of Hashable, "..." or None, default: None
163
163
Name of dimension[s] along which to apply ``any``. For e.g. ``dim="x"``
164
164
or ``dim=["x", "y"]``. If "..." or None, will reduce over all dimensions.
165
- keep_attrs : bool or None , optional
165
+ keep_attrs : bool, optional
166
166
If True, ``attrs`` will be copied from the original
167
167
object to the new one. If False, the new object will be
168
168
returned without attributes.
@@ -213,7 +213,7 @@ def max(
213
213
dim : Dims = None ,
214
214
* ,
215
215
skipna : bool | None = None ,
216
- keep_attrs : bool | None = None ,
216
+ keep_attrs : bool = True ,
217
217
** kwargs : Any ,
218
218
) -> Self :
219
219
"""
@@ -229,7 +229,7 @@ def max(
229
229
skips missing values for float dtypes; other dtypes either do not
230
230
have a sentinel missing value (int) or ``skipna=True`` has not been
231
231
implemented (object, datetime64 or timedelta64).
232
- keep_attrs : bool or None , optional
232
+ keep_attrs : bool, optional
233
233
If True, ``attrs`` will be copied from the original
234
234
object to the new one. If False, the new object will be
235
235
returned without attributes.
@@ -287,7 +287,7 @@ def min(
287
287
dim : Dims = None ,
288
288
* ,
289
289
skipna : bool | None = None ,
290
- keep_attrs : bool | None = None ,
290
+ keep_attrs : bool = True ,
291
291
** kwargs : Any ,
292
292
) -> Self :
293
293
"""
@@ -303,7 +303,7 @@ def min(
303
303
skips missing values for float dtypes; other dtypes either do not
304
304
have a sentinel missing value (int) or ``skipna=True`` has not been
305
305
implemented (object, datetime64 or timedelta64).
306
- keep_attrs : bool or None , optional
306
+ keep_attrs : bool, optional
307
307
If True, ``attrs`` will be copied from the original
308
308
object to the new one. If False, the new object will be
309
309
returned without attributes.
@@ -361,7 +361,7 @@ def mean(
361
361
dim : Dims = None ,
362
362
* ,
363
363
skipna : bool | None = None ,
364
- keep_attrs : bool | None = None ,
364
+ keep_attrs : bool = True ,
365
365
** kwargs : Any ,
366
366
) -> Self :
367
367
"""
@@ -377,7 +377,7 @@ def mean(
377
377
skips missing values for float dtypes; other dtypes either do not
378
378
have a sentinel missing value (int) or ``skipna=True`` has not been
379
379
implemented (object, datetime64 or timedelta64).
380
- keep_attrs : bool or None , optional
380
+ keep_attrs : bool, optional
381
381
If True, ``attrs`` will be copied from the original
382
382
object to the new one. If False, the new object will be
383
383
returned without attributes.
@@ -440,7 +440,7 @@ def prod(
440
440
* ,
441
441
skipna : bool | None = None ,
442
442
min_count : int | None = None ,
443
- keep_attrs : bool | None = None ,
443
+ keep_attrs : bool = True ,
444
444
** kwargs : Any ,
445
445
) -> Self :
446
446
"""
@@ -462,7 +462,7 @@ def prod(
462
462
NA. Only used if skipna is set to True or defaults to True for the
463
463
array's dtype. Changed in version 0.17.0: if specified on an integer
464
464
array and skipna=True, the result will be a float array.
465
- keep_attrs : bool or None , optional
465
+ keep_attrs : bool, optional
466
466
If True, ``attrs`` will be copied from the original
467
467
object to the new one. If False, the new object will be
468
468
returned without attributes.
@@ -532,7 +532,7 @@ def sum(
532
532
* ,
533
533
skipna : bool | None = None ,
534
534
min_count : int | None = None ,
535
- keep_attrs : bool | None = None ,
535
+ keep_attrs : bool = True ,
536
536
** kwargs : Any ,
537
537
) -> Self :
538
538
"""
@@ -554,7 +554,7 @@ def sum(
554
554
NA. Only used if skipna is set to True or defaults to True for the
555
555
array's dtype. Changed in version 0.17.0: if specified on an integer
556
556
array and skipna=True, the result will be a float array.
557
- keep_attrs : bool or None , optional
557
+ keep_attrs : bool, optional
558
558
If True, ``attrs`` will be copied from the original
559
559
object to the new one. If False, the new object will be
560
560
returned without attributes.
@@ -624,7 +624,7 @@ def std(
624
624
* ,
625
625
skipna : bool | None = None ,
626
626
ddof : int = 0 ,
627
- keep_attrs : bool | None = None ,
627
+ keep_attrs : bool = True ,
628
628
** kwargs : Any ,
629
629
) -> Self :
630
630
"""
@@ -643,7 +643,7 @@ def std(
643
643
ddof : int, default: 0
644
644
“Delta Degrees of Freedom”: the divisor used in the calculation is ``N - ddof``,
645
645
where ``N`` represents the number of elements.
646
- keep_attrs : bool or None , optional
646
+ keep_attrs : bool, optional
647
647
If True, ``attrs`` will be copied from the original
648
648
object to the new one. If False, the new object will be
649
649
returned without attributes.
@@ -713,7 +713,7 @@ def var(
713
713
* ,
714
714
skipna : bool | None = None ,
715
715
ddof : int = 0 ,
716
- keep_attrs : bool | None = None ,
716
+ keep_attrs : bool = True ,
717
717
** kwargs : Any ,
718
718
) -> Self :
719
719
"""
@@ -732,7 +732,7 @@ def var(
732
732
ddof : int, default: 0
733
733
“Delta Degrees of Freedom”: the divisor used in the calculation is ``N - ddof``,
734
734
where ``N`` represents the number of elements.
735
- keep_attrs : bool or None , optional
735
+ keep_attrs : bool, optional
736
736
If True, ``attrs`` will be copied from the original
737
737
object to the new one. If False, the new object will be
738
738
returned without attributes.
@@ -801,7 +801,7 @@ def median(
801
801
dim : Dims = None ,
802
802
* ,
803
803
skipna : bool | None = None ,
804
- keep_attrs : bool | None = None ,
804
+ keep_attrs : bool = True ,
805
805
** kwargs : Any ,
806
806
) -> Self :
807
807
"""
@@ -817,7 +817,7 @@ def median(
817
817
skips missing values for float dtypes; other dtypes either do not
818
818
have a sentinel missing value (int) or ``skipna=True`` has not been
819
819
implemented (object, datetime64 or timedelta64).
820
- keep_attrs : bool or None , optional
820
+ keep_attrs : bool, optional
821
821
If True, ``attrs`` will be copied from the original
822
822
object to the new one. If False, the new object will be
823
823
returned without attributes.
@@ -879,7 +879,7 @@ def cumsum(
879
879
dim : Dims = None ,
880
880
* ,
881
881
skipna : bool | None = None ,
882
- keep_attrs : bool | None = None ,
882
+ keep_attrs : bool = True ,
883
883
** kwargs : Any ,
884
884
) -> Self :
885
885
"""
@@ -895,7 +895,7 @@ def cumsum(
895
895
skips missing values for float dtypes; other dtypes either do not
896
896
have a sentinel missing value (int) or ``skipna=True`` has not been
897
897
implemented (object, datetime64 or timedelta64).
898
- keep_attrs : bool or None , optional
898
+ keep_attrs : bool, optional
899
899
If True, ``attrs`` will be copied from the original
900
900
object to the new one. If False, the new object will be
901
901
returned without attributes.
@@ -957,7 +957,7 @@ def cumprod(
957
957
dim : Dims = None ,
958
958
* ,
959
959
skipna : bool | None = None ,
960
- keep_attrs : bool | None = None ,
960
+ keep_attrs : bool = True ,
961
961
** kwargs : Any ,
962
962
) -> Self :
963
963
"""
@@ -973,7 +973,7 @@ def cumprod(
973
973
skips missing values for float dtypes; other dtypes either do not
974
974
have a sentinel missing value (int) or ``skipna=True`` has not been
975
975
implemented (object, datetime64 or timedelta64).
976
- keep_attrs : bool or None , optional
976
+ keep_attrs : bool, optional
977
977
If True, ``attrs`` will be copied from the original
978
978
object to the new one. If False, the new object will be
979
979
returned without attributes.
0 commit comments