Skip to content

Commit

Permalink
Removed _core that causes maximum recursion depth exceeded
Browse files Browse the repository at this point in the history
  • Loading branch information
andeplane authored Oct 8, 2024
1 parent ebc264d commit c3f443c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pandasai/smart_dataframe/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,7 @@ def __eq__(self, other):
return self.dataframe.equals(other.dataframe)

def __getattr__(self, name):
if name in self._core.__dir__():
return getattr(self._core, name)
elif name in self.dataframe.__dir__():
if name in self.dataframe.__dir__():
return getattr(self.dataframe, name)
else:
return self.__getattribute__(name)
Expand Down

0 comments on commit c3f443c

Please sign in to comment.