CtrlK
CommunityDocumentationLog inGet started
Tessl Logo

tessl/pypi-tabulate

tessl install tessl/pypi-tabulate@0.9.0

Pretty-print tabular data in Python with extensive formatting options and output format support.

Agent Success

Agent success rate when using this tile

69%

Improvement

Agent success rate improvement when using this tile compared to baseline

0.9x

Baseline

Agent success rate without this tile

77%

task.mdevals/scenario-2/

Data Report Formatter

A utility that formats data from various sources into readable table reports for command-line display.

Capabilities

Format employee data

  • Given employee_data=[["Alice", "Engineering", 75000], ["Bob", "Sales", 65000]] without headers, format_employee_report returns a formatted table string @test
  • Given employee_data=[["Alice", "Engineering", 75000]] with headers=["Name", "Department", "Salary"], format_employee_report returns a formatted table that includes the header row @test

Handle empty dataset

  • Given an empty list [], format_employee_report returns an empty string "" @test

Format dictionary data

  • Given product_data=[{"product": "Laptop", "quantity": 5, "price": 999.99}, {"product": "Mouse", "quantity": 20, "price": 29.99}], format_product_report returns a formatted table with column headers "product", "quantity", and "price" @test

Implementation

@generates

API

def format_employee_report(employee_data, headers=None):
    """
    Formats employee data into a readable table string.

    Args:
        employee_data: List of lists or list of dicts containing employee information
        headers: Optional list of column header names

    Returns:
        str: Formatted table as a string
    """
    pass

def format_product_report(product_data):
    """
    Formats product data from dictionaries into a readable table string.
    Uses dictionary keys as column headers.

    Args:
        product_data: List of dictionaries containing product information

    Returns:
        str: Formatted table as a string
    """
    pass

Dependencies { .dependencies }

tabulate { .dependency }

Provides table formatting functionality.

Version

Workspace
tessl
Visibility
Public
Created
Last updated
Describes
pypipkg:pypi/tabulate@0.9.x
tile.json