When executing "Correlation" in analytics, an error "supply both 'x' and 'y' or a matrix-like 'x'" occurs

When executing “Correlation” in Exploratory’s analytics, if the error “supply both ‘x’ and ‘y’ or a matrix-like ‘x’” is displayed, here’s an explanation of the solution method.

Cause of the Error

This error occurs when only one column is selected. Since correlation analysis is a function that analyzes relationships between multiple variables, at least two or more columns are required.

Solution

By ensuring that two or more columns are selected when executing correlation, this error will be resolved.