Corr
An intermediate class used in the corr operation.
This class does not perform any computation by itself — it serves as a transitional step before specifying how the correlation should be calculated. It must be followed by one of the computation methods to produce a correlation DataFrame.
The resulting DataFrame is a correlation matrix where rows correspond to one set of columns, columns to the other set, and each cell contains the Pearson correlation coefficient between the respective pair of columns.
Use the following methods to perform the computation:
with— selects a second set of columns and computes correlations between the initially selected columns and this second set.withItself— computes pairwise correlations within the initially selected columns.
See Grammar for more details.