kodeagent.agents.csv_agent.sample_rows#
- kodeagent.agents.csv_agent.sample_rows(filter_column: str, filter_value: str, n: int = 5) str[source]#
Get sample rows matching a condition. Useful for investigating specific anomalies or verifying a pattern.
- Parameters:
filter_column – Column to filter on.
filter_value – Value to match (string comparison).
n – Number of rows to return (default 5, max 20).
- Returns:
A JSON string containing the sample rows.