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%

rubric.jsonevals/scenario-8/

{
  "context": "This criteria evaluates how well the engineer uses the tabulate package's wide character (CJK) support capabilities, including proper integration with the wcwidth library for correct character width calculation and text alignment.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Uses tabulate function",
      "description": "The solution imports and uses the tabulate() function from the tabulate package to format the product data into a table",
      "max_score": 15
    },
    {
      "name": "Enables grid format",
      "description": "Uses an appropriate grid-style table format (e.g., 'grid', 'fancy_grid', 'simple_grid', etc.) via the tablefmt parameter to display borders as specified",
      "max_score": 10
    },
    {
      "name": "Provides proper headers",
      "description": "Uses the headers parameter of tabulate() to specify column headers (e.g., headers='keys' or explicit header list) for id, name, price, and description columns",
      "max_score": 10
    },
    {
      "name": "Wide character support",
      "description": "The solution correctly handles wide characters (CJK) by ensuring tabulate's WIDE_CHARS_MODE is enabled or that wcwidth library is available, allowing proper width calculation for Chinese, Japanese, and Korean characters",
      "max_score": 25
    },
    {
      "name": "Implements text wrapping",
      "description": "Uses the maxcolwidths parameter of tabulate() to control column width and enable automatic text wrapping for the description column (set to approximately 20 characters)",
      "max_score": 20
    },
    {
      "name": "Character boundary handling",
      "description": "The solution properly configures wrapping behavior to respect wide character boundaries, either by relying on tabulate's default behavior with wcwidth integration or by explicitly setting break_long_words parameter",
      "max_score": 15
    },
    {
      "name": "Correct alignment",
      "description": "The output table demonstrates proper alignment where CJK characters are treated as width 2 and ASCII characters as width 1, resulting in correctly aligned columns regardless of character types",
      "max_score": 5
    }
  ]
}

Version

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