课程: Machine Learning with Python: Foundations
今天就学习课程吧!
今天就开通帐号,24,100 门业界名师课程任您挑!
How to summarize data in Python - Python教程
课程: Machine Learning with Python: Foundations
How to summarize data in Python
- [Instructor] During the exploration, one of the best ways to understand the nature of the data at hand is to summarize it by computing aggregations, such as mean, median, maximum and minimum. These aggregations or statistical measures, as they're commonly referred to, are helpful in describing the general and specific characteristics of data. The Pandas data frame provides several easy to use methods that help us describe and summarize data. One of these methods is the info method. Given a data frame called washers, we can get a concise summary of its rows and columns by calling it's info method. From the output, we can tell the washers data frame has 261 rows and 18 columns. Five of the columns hold decimal values, three hold integer values and 10 hold textual data. If we want a sneak peek of the data stored in the data frame, we can call it's head method. As we can see from the output, the head method returns…
随堂练习,边学边练
下载课堂讲义。学练结合,紧跟进度,轻松巩固知识。