agentchat.contrib.captainagent.tools.data_analysis
agentchat.contrib.captainagent.tools.data_analysis.calculate_skewness_and_kurtosis
calculate_skewness_and_kurtosis
Calculate the skewness and kurtosis of a specified column in a CSV file. The kurtosis is calculated using the Fisher definition. The two metrics are computed using scipy.stats functions.
Arguments:
csv_file
str - The path to the CSV file.column_name
str - The name of the column to calculate skewness and kurtosis for.
Returns:
tuple
- (skewness, kurtosis)