diff --git a/requirements.txt b/requirements.txt index 6bde6e5..c802fa6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ numpy<=1.26.1 -pandas<=2.1.1 +pandas<=2.1.2 pandas-stubs<=2.1.1.230928 typeguard<=2.13.3 diff --git a/strictly_typed_pandas/dataset.py b/strictly_typed_pandas/dataset.py index 42ec66a..756d2a5 100644 --- a/strictly_typed_pandas/dataset.py +++ b/strictly_typed_pandas/dataset.py @@ -57,11 +57,11 @@ def __setitem__(self, key: Any, value: Any): raise NotImplementedError(immutable_error_msg) def __getattribute__(self, name: str) -> Any: - attribute = object.__getattribute__(self, name) if name in dataframe_functions: + attribute = self.to_dataframe().__getattribute__(name) return inplace_argument_interceptor(attribute) else: - return attribute + return object.__getattribute__(self, name) @property def iloc(self) -> _ImmutableiLocIndexer: # type: ignore