fix(Dataframe): adding default dataframe name to enable sql query on it, simplified dataframe serialization #1523
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Important
Enhance DataFrame handling by adding default SQL table names and simplifying serialization, with updates to templates and tests.
read_csv()
in__init__.py
now assigns a default table name usingsanitize_sql_table_name()
.DataFrame
inbase.py
assigns a default name if none is provided, using a column hash.serialize_dataframe()
inbase.py
to remove index parameter.DataframeSerializer
indataframe_serializer.py
now only supports CSV-like serialization.correct_execute_sql_query_usage_error_prompt.tmpl
andgenerate_python_code_with_sql.tmpl
.sql_sanitizer.py
for sanitizing SQL table names.test_agent.py
,test_dataframe_serializer.py
, andtest_sql_sanitizer.py
to reflect changes in serialization and SQL sanitization.This description was created by for fd22f8c. It will automatically update as commits are pushed.