| [ Web Proxy ] |
| Viewing: https://dataframes.bigquery.dev/reference/api/bigframes.pandas.api.typing.DataFrameGroupBy.cov.html | [Back] [Original] |
Section Navigation
Compute pairwise covariance of columns, excluding NA/null values.
Examples:
>>> df = bpd.DataFrame({'A': [1, 2, 3],
... 'B': [400, 500, 600],
... 'C': [0.8, 0.4, 0.9]})
>>> df.cov(numeric_only=True)
A B C
A 1.0 100.0 0.05
B 100.0 10000.0 5.0
C 0.05 5.0 0.07
[3 rows x 3 columns]
numeric_only (bool, default False) Include only float, int, boolean, decimal data.
The covariance matrix of the series of the DataFrame.
Copyright 2019, Google.
Created using Sphinx 8.1.3.
Built with the PyData Sphinx Theme 0.19.0.
| Web Proxy Viewer | New URL | Original Page |