Pretty-print tabular data in Python with extensive formatting options and output format support.
Overall
score
69%
{
"context": "This criteria evaluates how well the engineer uses the tabulate library's missing value handling capabilities, specifically the missingval parameter for both global and per-column missing value replacement in formatted tables.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses tabulate function",
"description": "Imports and calls the tabulate() function from the tabulate package to format tables",
"max_score": 15
},
{
"name": "Passes data to tabulate",
"description": "Correctly structures parsed CSV data as a list of lists or similar tabular format that tabulate can process, with empty cells represented as None values",
"max_score": 15
},
{
"name": "Global missingval parameter",
"description": "Uses the missingval parameter with a string value (e.g., missingval='N/A') to globally replace all None/missing values in the table",
"max_score": 25
},
{
"name": "Per-column missingval parameter",
"description": "Uses the missingval parameter with a tuple or list (e.g., missingval=('Unknown', 'Confidential')) to specify different placeholder text for different columns",
"max_score": 30
},
{
"name": "Correct placeholder mapping",
"description": "Correctly maps column-specific placeholders to their respective columns, ensuring the order matches the data columns",
"max_score": 10
},
{
"name": "Returns formatted string",
"description": "Returns the string output from tabulate() rather than printing directly, allowing the table to be used programmatically",
"max_score": 5
}
]
}Install with Tessl CLI
npx tessl i tessl/pypi-tabulatedocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10