Using Python for data analysis (9) pandas summary statistics and computing, pythonpandas

Source: Internet
Author: User

Using Python for data analysis (9) pandas summary statistics and computing, pythonpandas

Pandas objects have some common mathematical and statistical methods. For example, in the sum () method, the column Subtotal: sum () method is passed into axis = 1 to specify a horizontal summary, that is, the row Subtotal: idxmax () gets the index corresponding to the maximum value: another kind of aggregation is cumulative, cumsum (), comparing it with sum:
The unique value of the unique () method is used to return the unique value of the data: value_counts () method used to calculate the frequency of occurrence of each value: the isin () method is used to determine the membership:

The installation steps have already been written in the first article. I will not describe them here. Using Python for data analysis (1) Brief Introduction
The next article is about using Python for data analysis (10) pandas to process missing data. If you are interested, please follow this blog and add comments for discussion.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.