tessl install tessl/pypi-tabulate@0.9.0Pretty-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%
A tool that analyzes tabular data and reports the inferred data types for each column.
[[1, "text"], [2, "more"]], the analyzer returns {0: "int", 1: "str"} @test[[1, 2.5], [2, 3.7]], the analyzer returns {0: "int", 1: "float"} @test[[1, 2.5], [2.0, 3]] where column 0 mixes int and float, the analyzer returns {0: "float", 1: "float"} @test[[1, None], [2, "text"]], the analyzer ignores None and returns {0: "int", 1: "str"} @test[], the analyzer returns an empty dictionary {} @test@generates
def analyze_column_types(data: list) -> dict:
"""
Analyzes tabular data and returns the inferred type for each column.
Args:
data: A list of lists representing rows of tabular data.
Each inner list represents a row with values for each column.
Returns:
A dictionary mapping column indices (0-based) to their inferred types.
Possible type values: "int", "float", "str", "bool", "none"
Raises:
ValueError: If data is not a list or contains non-iterable rows.
"""
passProvides table formatting and type inference capabilities.
@satisfied-by