File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -2153,13 +2153,14 @@ def var(
2153
2153
2154
2154
return self ._numba_agg_general (sliding_var , engine_kwargs , ddof )
2155
2155
else :
2156
+ ignore_failures = numeric_only is lib .no_default
2156
2157
numeric_only = self ._resolve_numeric_only (numeric_only )
2157
2158
if ddof == 1 :
2158
2159
return self ._cython_agg_general (
2159
2160
"var" ,
2160
2161
alt = lambda x : Series (x ).var (ddof = ddof ),
2161
2162
numeric_only = numeric_only ,
2162
- ignore_failures = numeric_only ,
2163
+ ignore_failures = ignore_failures ,
2163
2164
)
2164
2165
else :
2165
2166
func = lambda x : x .var (ddof = ddof )
@@ -2176,7 +2177,7 @@ def var(
2176
2177
):
2177
2178
with self ._group_selection_context ():
2178
2179
return self ._python_agg_general (
2179
- func , raise_on_typeerror = not numeric_only
2180
+ func , raise_on_typeerror = not ignore_failures
2180
2181
)
2181
2182
2182
2183
@final
You can’t perform that action at this time.
0 commit comments