课程: Machine Learning with Python: Foundations

今天就学习课程吧!

今天就开通帐号,24,100 门业界名师课程任您挑!

How to normalize data in Python

How to normalize data in Python

- Part of the objective of data preparation, is to transform our data in order to make it more suitable for machine learning. During this step, we often have to restructure some of our data, so right. It conforms to a particular characteristic. This is known as normalization. There are several ways to normalize data in Python, to illustrate how to normalize data let's import and preview a sample vehicles emissions data set into a data frame called vehicles. Our goal is to normalize the CO2 emissions column. So let's get descriptive statistics for that column, vehicles specify the column that we want, which is CO2 emissions. And we call it that describe method to augment our understanding of the summary statistics. Let's also create a histogram that shows the distribution of values for the CO2 emissions column, the histogram visualizes, what we already see in the summary statistics, the carbon emissions values in the…

内容