Load data from databases to dataframes, the fastest way.
86
Quality
Pending
Does it follow best practices?
Impact
86%
1.04xAverage score across 10 eval scenarios
A utility that loads data from a database and analyzes how different database types are converted to Python dataframe types.
@generates
def inspect_types(conn_str: str, query: str) -> dict[str, str]:
"""
Load data from a database and return a mapping of column names to their
Python dataframe data types.
Args:
conn_str: Database connection string
query: SQL query to execute
Returns:
Dictionary mapping column names to type names (as strings)
"""
pass
def compare_format_types(conn_str: str, query: str) -> dict[str, dict[str, str]]:
"""
Load the same data into both pandas and arrow formats and return
type information for each format.
Args:
conn_str: Database connection string
query: SQL query to execute
Returns:
Dictionary with keys 'pandas' and 'arrow', each containing a
dictionary mapping column names to type names (as strings)
"""
passProvides high-performance data loading from databases with sophisticated type mapping.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/pypi-connectorxdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10