- Python:Advanced Predictive Analytics
- Ashish Kumar Joseph Babcock
- 372字
- 2021-07-02 20:09:20
Chapter 2. Data Cleaning
Without any further ado, lets kick-start the engine and start our foray into the world of predictive analytics. However, you need to remember that our fuel is data. In order to do any predictive analysis, one needs to access and import data for the engine to rev up.
I assume that you have already installed Python and the required packages with an IDE of your choice. Predictive analytics, like any other art, is best learnt when tried hands-on and practiced as frequently as possible. The book will be of the best use if you open a Python IDE of your choice and practice the explained concepts on your own. So, if you haven't installed Python and its packages yet, now is the time. If not all the packages, at-least pandas
should be installed, which are the mainstay of the things that we will learn in this chapter.
After reading this chapter, you should be familiar with the following topics:
- Handling various kind of data importing scenarios that is importing various kind of datasets (
.csv
,.txt
), different kind of delimiters (comma
,tab
,pipe
), and different methods (read_csv
,read_table
) - Getting basic information, such as dimensions, column names, and statistics summary
- Getting basic data cleaning done that is removing NAs and blank spaces, imputing values to missing data points, changing a variable type, and so on
- Creating dummy variables in various scenarios to aid modelling
- Generating simple plots like scatter plots, bar charts, histograms, box plots, and so on
From now on, we will be using a lot of publicly available datasets to illustrate concepts and examples. All the used datasets have been stored in a Google Drive folder, which can be accessed from this link: https://goo.gl/zjS4C6.
Note
This folder is called "Datasets for Predictive Modelling with Python". This folder has a subfolder dedicated to each chapter of the book. Each subfolder contains the datasets that were used in the chapter.
The paths for the dataset used in this book are paths on my local computer. You can download the datasets from these subfolders to your local computer before using them. Better still, you can download the entire folder, at once and save it somewhere on your local computer.
- 數據存儲架構與技術
- 達夢數據庫編程指南
- iOS and OS X Network Programming Cookbook
- Ceph源碼分析
- Hadoop 3.x大數據開發實戰
- Flutter Projects
- 實用數據結構
- The Natural Language Processing Workshop
- Spring Boot 2.0 Cookbook(Second Edition)
- Visual Studio 2012 and .NET 4.5 Expert Development Cookbook
- 大數據隱私保護技術與治理機制研究
- 數據庫原理及應用:SQL Server 2016
- 碼上行動:利用Python與ChatGPT高效搞定Excel數據分析
- 推薦系統全鏈路設計:原理解讀與業務實踐
- 數據分析方法及應用:基于SPSS和EXCEL環境