Function calculate_sub

Source
pub fn calculate_sub(
    df: &DataFrame,
    col1: &str,
    col2: &str,
) -> PolarsResult<Series>
Expand description

Vector arithmetic subtraction

§Arguments

  • df - DataFrame containing the data
  • col1 - First column name (minuend)
  • col2 - Second column name (subtrahend)

§Returns

Returns a PolarsResult containing the subtraction Series