Pretty-print tabular data in Python with extensive formatting options and output format support.
Overall
score
69%
{
"context": "This criteria evaluates the engineer's ability to use the tabulate library for basic table formatting tasks, specifically focusing on proper usage of the tabulate() function with different data structures and header configurations.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Uses tabulate() function",
"description": "The implementation imports and uses the tabulate() function from the tabulate package for formatting tables",
"max_score": 20
},
{
"name": "List of lists formatting",
"description": "Correctly passes list of lists data structure to tabulate() for the employee report without headers",
"max_score": 20
},
{
"name": "Headers parameter usage",
"description": "Correctly uses the headers parameter of tabulate() to add column headers when provided",
"max_score": 20
},
{
"name": "Empty data handling",
"description": "Handles empty list input correctly, leveraging tabulate()'s behavior of returning empty string for empty data",
"max_score": 15
},
{
"name": "Dictionary data formatting",
"description": "Correctly passes list of dictionaries to tabulate() for the product report",
"max_score": 15
},
{
"name": "Automatic headers from keys",
"description": "Uses the headers='keys' parameter or equivalent to extract column headers from dictionary keys",
"max_score": 10
}
]
}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