- Training Systems Using Python Statistical Modeling
- Curtis Miller
- 206字
- 2021-06-24 14:20:42
Computing descriptive statistics
In this section, we will review methods for obtaining descriptive statistics from data that is stored in a pandas DataFrame. We will use the pandas library to compute statistics from the data. So, let's jump right in!
DataFrames come equipped with many methods for computing common descriptive statistics for the data they contain. This is one of the advantages of storing data in DataFrames—working with data stored this way is easy. Getting common descriptive statistics, such as the mean, the median, the standard deviation, and more, is easy for data that is present in DataFrames. There are methods that can be called in order to quickly compute each of these. We will review several of these methods now.
If you want a basic set of descriptive statistics, just to get a sense of the contents of the DataFrame, consider using the describe() method. It includes the mean, standard deviation, an account of how much data there is, and the five-number summary built in.
Sometimes, the statistic that you want isn't a built-in DataFrame method. In this case, you will write a function that works for a pandas series, and then apply that function to each column using the apply() method.
- The DevOps 2.3 Toolkit
- Learning ROS for Robotics Programming(Second Edition)
- 深入理解Django:框架內幕與實現原理
- JavaFX Essentials
- FreeSWITCH 1.6 Cookbook
- Network Automation Cookbook
- 數據結構簡明教程(第2版)微課版
- 網站構建技術
- 小學生C++創意編程(視頻教學版)
- C# Multithreaded and Parallel Programming
- Oracle Data Guard 11gR2 Administration Beginner's Guide
- Machine Learning for OpenCV
- Ext JS 4 Plugin and Extension Development
- Microsoft HoloLens By Example
- 虛擬現實建模與編程(SketchUp+OSG開發技術)