diff --git a/CHANGELOG.md b/CHANGELOG.md index 477ab329..ab475892 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,18 @@ Changelog ========= +0.5.0 +----- + +* Implement `FletcherBaseArray.__or__` and `FletcherBaseArray.__any__` to support `pandas.Series.replace`. + +0.4.0 +----- + +* Forward the `__array__` protocol directly to Arrow +* Add naive implementation for `zfill` +* Add efficient (Numba-based) implementations for `endswith`, `startswith` and `contains` + 0.3.1 ----- diff --git a/fletcher/base.py b/fletcher/base.py index 1105464f..1997db30 100644 --- a/fletcher/base.py +++ b/fletcher/base.py @@ -382,6 +382,13 @@ def all(self, skipna: bool = False) -> Optional[bool]: else: raise TypeError("Can only execute all on boolean arrays") + def any(self, skipna: bool = False, **kwargs) -> Optional[bool]: + """Compute whether any boolean value is True.""" + if pa.types.is_boolean(self.data.type): + return any_op(self.data, skipna=skipna) + else: + raise TypeError("Can only execute all on boolean arrays") + def sum(self, skipna: bool = True): """Return the sum of the values.""" return self._reduce("sum", skipna=skipna)