Pretty-print tabular data in Python with extensive formatting options and output format support.
Overall
score
69%
{
"context": "This criteria evaluates how effectively the engineer uses the tabulate package's header handling capabilities to solve the employee data formatting problem. It focuses specifically on the proper use of the headers parameter with different values (firstrow, keys, and dictionary mapping) as well as overall correct usage of the tabulate() function.",
"type": "weighted_checklist",
"checklist": [
{
"name": "Import tabulate",
"description": "Correctly imports the tabulate function from the tabulate package",
"max_score": 5
},
{
"name": "CSV firstrow headers",
"description": "In format_csv_data(), uses tabulate() with headers='firstrow' parameter to treat the first row as column headers",
"max_score": 25
},
{
"name": "Dict keys headers",
"description": "In format_dict_data(), uses tabulate() with headers='keys' parameter to extract headers from dictionary keys",
"max_score": 25
},
{
"name": "Header mapping",
"description": "In format_legacy_data(), uses tabulate() with headers parameter set to a dictionary or list that maps abbreviated keys to readable column names",
"max_score": 30
},
{
"name": "Correct data passing",
"description": "Passes data as the first argument to tabulate() in all three functions",
"max_score": 10
},
{
"name": "Return formatted output",
"description": "Returns the string output from tabulate() function calls in all three functions",
"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