agentchat.contrib.captainagent.tools.data_analysis.shapiro_wilk_test
shapiro_wilk_test
@with_requirements(["pandas", "scipy"])
def shapiro_wilk_test(csv_file, column_name)
Perform the Shapiro-Wilk test on a specified column of a CSV file.
Arguments:
csv_file
str - The path to the CSV file.column_name
str - The name of the column to perform the test on.
Returns:
float
- The p-value resulting from the Shapiro-Wilk test.