diff --git a/pandasai/smart_dataframe/abstract_df.py b/pandasai/smart_dataframe/abstract_df.py index 7d1efe66a..676c00411 100644 --- a/pandasai/smart_dataframe/abstract_df.py +++ b/pandasai/smart_dataframe/abstract_df.py @@ -279,7 +279,7 @@ def to_csv(self, path): """ A proxy-call to the dataframe's `.to_csv()`. """ - return self.dataframe.to_csv(path=path) + return self.dataframe.to_csv(path_or_buf=path) def to_json(self, path): """