@@ -587,6 +587,8 @@ def sum(
587
587
):
588
588
if not self .adjust :
589
589
raise NotImplementedError ("sum is not implemented with adjust=False" )
590
+ if self .times is not None :
591
+ raise NotImplementedError ("sum is not implemented with times" )
590
592
if maybe_use_numba (engine ):
591
593
if self .method == "single" :
592
594
func = generate_numba_ewm_func
@@ -658,6 +660,8 @@ def std(self, bias: bool = False, numeric_only: bool = False):
658
660
raise NotImplementedError (
659
661
f"{ type (self ).__name__ } .std does not implement numeric_only"
660
662
)
663
+ if self .times is not None :
664
+ raise NotImplementedError ("std is not implemented with times" )
661
665
return zsqrt (self .var (bias = bias , numeric_only = numeric_only ))
662
666
663
667
@doc (
@@ -691,6 +695,8 @@ def std(self, bias: bool = False, numeric_only: bool = False):
691
695
agg_method = "var" ,
692
696
)
693
697
def var (self , bias : bool = False , numeric_only : bool = False ):
698
+ if self .times is not None :
699
+ raise NotImplementedError ("var is not implemented with times" )
694
700
window_func = window_aggregations .ewmcov
695
701
wfunc = partial (
696
702
window_func ,
@@ -753,6 +759,9 @@ def cov(
753
759
bias : bool = False ,
754
760
numeric_only : bool = False ,
755
761
):
762
+ if self .times is not None :
763
+ raise NotImplementedError ("cov is not implemented with times" )
764
+
756
765
from pandas import Series
757
766
758
767
self ._validate_numeric_only ("cov" , numeric_only )
@@ -837,6 +846,9 @@ def corr(
837
846
pairwise : bool | None = None ,
838
847
numeric_only : bool = False ,
839
848
):
849
+ if self .times is not None :
850
+ raise NotImplementedError ("corr is not implemented with times" )
851
+
840
852
from pandas import Series
841
853
842
854
self ._validate_numeric_only ("corr" , numeric_only )
0 commit comments