We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cd1de1 commit 67d89c7Copy full SHA for 67d89c7
pandasai/smart_datalake/__init__.py
@@ -34,7 +34,11 @@ def load_dfs(self, dfs: List[pd.DataFrame]):
34
load_dfs = []
35
for df in dfs:
36
if isinstance(df, pd.DataFrame):
37
- load_dfs.append(DataFrame(df))
+ load_dfs.append(
38
+ DataFrame(df)
39
+ if not isinstance(df, DataFrame) and isinstance(df, pd.DataFrame)
40
+ else df
41
+ )
42
else:
43
raise ValueError(
44
"Invalid input data. We cannot convert it to a dataframe."
0 commit comments