@Substitution(name='<STR_LIT>')<EOL><INDENT>@Appender(_doc_template)<EOL>@Appender(_pairwise_template)<EOL>def cov(self, other=None, pairwise=None, bias=False, **kwargs):<DEDENT>
if other is None:<EOL><INDENT>other = self._selected_obj<EOL>pairwise = True if pairwise is None else pairwise<EOL><DEDENT>other = self._shallow_copy(other)<EOL>def _get_cov(X, Y):<EOL><INDENT>X = self._shallow_copy(X)<EOL>Y = self._shallow_copy(Y)<EOL>cov = libwindow.ewmcov(X._prep_values(), Y._prep_values(),<EOL>self.com, int(self.adjust),<EOL>int(self.ignore_na), int(self.min_periods),<EOL>int(bias))<EOL>return X._wrap_result(cov)<EOL><DEDENT>return _flex_binary_moment(self._selected_obj, other._selected_obj,<EOL>_get_cov, pairwise=bool(pairwise))<EOL>
Exponential weighted sample covariance.