pastas.stats.signatures.colwell_constancy ========================================= .. py:function:: pastas.stats.signatures.colwell_constancy(series: pandas.Series, bins: int = 11, freq: str = 'W', method: Literal['mean'] = 'mean', normalize: bool = True) -> tuple[float, float, float] Colwells constancy index after :cite:t:`colwell_predictability_1974`. :param series: Pandas Series with DatetimeIndex and head values. :type series: pandas.Series :param bins: number of bins to determine the states of the groundwater. :type bins: int :param freq: frequency to resample the series to. :type freq: str, optional :param method: Method to use for resampling. Only "mean" is allowed now. :type method: str, optional :param normalize: normalize the time series to values between zero and one. :type normalize: bool, optional :returns: **c** -- Colwell's constancy. :rtype: float .. rubric:: Notes One minus the sum of entropy with respect to state, divided by the logarithm of the absolute number of possible states. .. !! processed by numpydoc !!