Skip to content

Commit

Permalink
Update to pandas 2.1.2 (nanne-aben#108)
Browse files Browse the repository at this point in the history
* Update to pandas 2.1.2

* Update to pandas 2.1.2

* import from typing_extensions

* remove args and kwargs type annotations, they do not work with typeguard for older versions of python

* convert dataset to dataframe when calling a dataframe function, such that the immutable option does not become a problem
  • Loading branch information
nanne-aben authored and caneff committed Nov 14, 2023
1 parent 0f727fe commit a0e199c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
@@ -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
4 changes: 2 additions & 2 deletions strictly_typed_pandas/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a0e199c

Please sign in to comment.