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.