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 data processing tool that efficiently loads large sales datasets from a PostgreSQL database using parallel processing techniques.
Load sales transaction data from a PostgreSQL database using parallel partitioning to maximize performance.
postgresql://user:pass@localhost:5432/salesdb and query SELECT * FROM sales WHERE year = 2024, load data using 4 parallel partitions on the id column and return a pandas DataFrame @test@generates
def load_sales_data(
connection_string: str,
query: str,
partition_column: str,
num_partitions: int
) -> pandas.DataFrame:
"""
Load sales data from database using parallel partitioning.
Args:
connection_string: Database connection string (e.g., "postgresql://user:pass@host/db")
query: SQL query to execute
partition_column: Column to use for partitioning (must be numeric)
num_partitions: Number of parallel partitions to create
Returns:
DataFrame containing all loaded data
"""
passProvides high-performance database-to-dataframe loading with parallel query partitioning support.
@satisfied-by
Provides DataFrame data structure for storing and manipulating loaded data.
@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