kodeagent.agents.csv_agent.get_value_counts#

kodeagent.agents.csv_agent.get_value_counts(column: str, top_n: int = 10) str[source]#

Get frequency distribution for a categorical column. Shows the most common values and their counts.

Parameters:
  • column – The column name to analyse.

  • top_n – Number of top values to return (default 10).

Returns:

A JSON string with the frequency distribution.