From c8113568e7d113538e97ee53ccbe71cf226f9992 Mon Sep 17 00:00:00 2001 From: J van Zundert Date: Sun, 2 Jul 2023 15:28:23 +0100 Subject: [PATCH] docs(python): Clarify Dataframe.corr operates on columns (#9678) --- py-polars/polars/dataframe/frame.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-polars/polars/dataframe/frame.py b/py-polars/polars/dataframe/frame.py index 4652c2bb9f53..62f33b935a76 100644 --- a/py-polars/polars/dataframe/frame.py +++ b/py-polars/polars/dataframe/frame.py @@ -8854,7 +8854,7 @@ def unnest(self, columns: str | Sequence[str], *more_columns: str) -> Self: @typing.no_type_check def corr(self, **kwargs: Any) -> DataFrame: """ - Return Pearson product-moment correlation coefficients. + Return pairwise Pearson product-moment correlation coefficients between columns. See numpy ``corrcoef`` for more information: https://numpy.org/doc/stable/reference/generated/numpy.corrcoef.html