nxcals.api.extraction.data.builders.DataFrame.cov

DataFrame.cov(col1: str, col2: str) float

Calculate the sample covariance for the given columns, specified by their names, as a double value. DataFrame.cov() and DataFrameStatFunctions.cov() are aliases.

New in version 1.4.0.

Parameters:
  • col1 (str) – The name of the first column

  • col2 (str) – The name of the second column