File tree Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Expand file tree Collapse file tree 2 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -817,6 +817,13 @@ def std(
817
817
) -> Self :
818
818
return np .std (self , axis = axis , where = where )
819
819
820
+ def var (
821
+ self : Self ,
822
+ axis : None | str | Sequence [str ] = None ,
823
+ where : Self = np ._NoValue ,
824
+ ) -> Self :
825
+ return np .var (self , axis = axis , where = where )
826
+
820
827
def percentile (
821
828
self : Self ,
822
829
q : int | float | u .Quantity | Self ,
Original file line number Diff line number Diff line change @@ -1196,6 +1196,12 @@ def test_std(
1196
1196
):
1197
1197
assert np .array_equal (array .std (), np .std (array ))
1198
1198
1199
+ def test_var (
1200
+ self ,
1201
+ array : na .AbstractArray ,
1202
+ ):
1203
+ assert np .array_equal (array .var (), np .var (array ))
1204
+
1199
1205
def test_percentile (
1200
1206
self ,
1201
1207
array : na .AbstractArray ,
You can’t perform that action at this time.
0 commit comments