Python Pandas: Mathematical Operations List

Pandas is used for data handling and manipulation to a large extent so pandas have some mathematical operation, There are certainly numerous instances while dealing with data science task where we perform some basic mathematical operations.

Here are some of them:

  1. add(): It performs the addition of dataframes which is done element-wise.
  2. sub(): It is used to perform subtraction on dataframes.
  3. mul(): It is used to perform multiplication on dataframes.
  4. div(): It is used to perform division on dataframes.
  5. sum(): It performs the sum of the values for the desired axis.
  6. agg(): It is used to find the aggregate using one or more operations over the desired axis.