Skip to main content

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.
Submitted by devanshi.srivastava on February 13, 2021

Devanshi, is working as a Data Scientist with iVagus. She has expertise in Python, NumPy, Pandas and other data science technologies.


At ProgramsBuzz, you can learn, share and grow with millions of techie around the world from different domain like Data Science, Software Development, QA and Digital Marketing. You can ask doubt and get the answer for your queries from our experts.