Skip to content

Commit

Permalink
fix(agent): remove wrong double validation (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
scaliseraoul authored Mar 5, 2025
1 parent b67caf8 commit 6265b01
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions pandasai/agent/state.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,19 +62,8 @@ def initialize(
save_logs=self.config.save_logs, verbose=self.config.verbose
)
self.vectorstore = vectorstore

self._validate_input()
self._configure()

def _validate_input(self):
"""Validate that all dataframes share the same schema source."""
base_schema_source = self.dfs[0].schema
for df in self.dfs[1:]:
if not is_schema_source_same(base_schema_source, df.schema):
raise InvalidConfigError(
"All connectors must share the same type, datasource, and credentials."
)

def _configure(self):
"""Configure paths for charts."""
# Add project root path if save_charts_path is default
Expand Down

0 comments on commit 6265b01

Please sign in to comment.