Pairwise correlation is computed between rows or columns of
DataFrame with rows or columns of Series or DataFrame. DataFrames
are first aligned along both axes before computing the
correlations.
Parameters:
other : DataFrame, Series
Object with which to compute correlations.
axis : {0 or ‘index’, 1 or ‘columns’}, default 0
The axis to use. 0 or ‘index’ to compute row-wise, 1 or ‘columns’ for
column-wise.
drop : bool, default False
Drop missing indices from result.
method : {‘pearson’, ‘kendall’, ‘spearman’} or callable