Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Cleaning Data for Effective Data Science

You're reading from   Cleaning Data for Effective Data Science Doing the other 80% of the work with Python, R, and command-line tools

Arrow left icon
Product type Paperback
Published in Mar 2021
Publisher Packt
ISBN-13 9781801071291
Length 498 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
David Mertz David Mertz
Author Profile Icon David Mertz
David Mertz
Arrow right icon
View More author details
Toc

Table of Contents (8) Chapters Close

Preface
1. PART I: Data Ingestion 2. PART II: The Vicissitudes of Error FREE CHAPTER 3. PART III: Rectification and Creation 4. PART IV: Ancillary Matters 5. Why subscribe?
6. Other Books You May Enjoy
7. Index

Value Imputation

I’m a substitute for another guy

I look pretty tall but my heels are high

The simple things you see are all complicated

I look pretty young, but I’m just back-dated, yeah

–Pete Townsend

Data can be missing or untrusted in a variety of ways, and for a variety of reasons. These ways are discussed especially in Chapter 4, Anomaly Detection, and Chapter 5, Data Quality. Sometimes your best option for dealing with bad data is simply to discard it. However, many times it is more useful to impute values in some manner, in order to retain the rest of the features within an observation. From the perspective of this chapter, let us assume that all data values identified as untrusted—even if initially present with bad values—have already been explicitly marked as missing.

When imputing data, it is important to keep a good record of the difference between values you have invented (imputed) and those...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image