Questions and answers
18 questions from the community, answered by the
author in
#book-of-the-week
on Slack.
-
Alex asked
Hi there, David Mertz! I’ve recently come across a realization that I, as data analyst, spend so much time extracting, cleaning and preprocessing data in order to analyze it as effectively as possible.
How would you frame the usefulness of this book for someone who is not directly related to data science?
-
Lalit Pagaria asked
David Mertz thank you for doing this.
1) We have so many end to end tools for ML pipeline. But I have observed pre processing part in it always semi manual. I also find very less tools solving this. Why is so? My main focus is towards Text besed NLP domain.
-
Lalit Pagaria asked
2) For text cleaning (specifically large documents and paragraphs in QA domain) what framework do you suggest?
-
Lalit Pagaria asked
3) Fun question, is it possible to use BERT based model to clean text itself (using model for pre processing)? Of course with proper training using good dataset. 🙂
-
Ken Lee asked
David Mertz thanks in advance for answering this question of mine.
You mentioned the use of version tracking of data. It's a good practice, definitely agreed. Any great tools that you would recommend for this purpose? Heard of DVC but never use it before.
-
David Cox asked
David Mertz Love the idea for this book and excited to check it out! It looks like it has a lot of great recommendations for how to handle different file types and common errors. My questions are around tools and technologies for helping speed-up the cleaning process. For example, do you have recommendations or insights on the benefits and drawbacks of different tools such as Open refine, Trifacta, Cloudingo, etc.?
-
Asmita asked
Hi David Mertz, I have recently dived into the Data Science field and realised obtaining an efficient set of input data consumes the maximum time. Like you said every messy dataset is messy in its own way, and this might result in the same process being performed on all datasets irrespective of it works or not. While understanding the data, and feature engineer, visualisation can help, how else can we figure out which technique of cleaning will give a better result?
-
Asmita asked
Also what advise would you give to someone who is new to the concept and is learning about the process of cleaning data ?
-
Neal Lathia asked
❔ At what stage of trying to clean & make sense of data would you give up and get the upstream system to log better data?
-
Vladimir Finkelshtein asked
Apart from manual inspection or anomaly detection is there a way to know that the data needs more cleaning?
I have seen this idea in some content from Andrew Ng, in image classification they purposefully added some amount of mislabeled images and calculated the reduction in the performance of a model. This should give an estimate of how much performance could be gained from correcting certain amount of labels. I wonder if similar approach can work with tabular data by, say, randomly assigning extremal values in some columns…
-
David Cox asked
Another question I'll pop out here, in case others are interested. How do you go about making decisions on how much/what to clean for operational databases versus pushing to data lakes and cleaning if/when needed? Asked differently, the volume of data many orgs handle makes it difficult to clean everything. What is your general strategy for picking what data to clean to maximize operational and innovative efficiencies?
-
Shankar Somayajula asked
Hi David Mertz, Cleaning data in a BI context usually refers to assigning defaults or unassigned dimension tags/keys to records which fail regular lookups... i.e. Have a special dimension value for each dimensional attribute so that this gets assigned in case nothing else works e.g. case when <regular logic> then <regular values/labels> else <unassigned/default label here> end. This effectively ensures that important event/fact/transactional information is retained and not lost if/when one enforces the fact to lookup/dimension joins in downstream applications.
Coming to your book (from the ToC): Why impute missing values via some process rather than simply assign them a default/special category of "unassigned"? Can't we view Data Science usage as yet another example of downstream usage of data (just like Business Intelligence)?
-
Heeren Sharma asked
Hi David Mertz I was searching for a book like this for quite some time as I realised that discussions around data quality are still somehow centered around commercial tooling. This book is definitely a refreshing breeze. 🙂 As a data engineer (and on the top a consultant 🙈), I have come across various discussion which centres around data cleaning, a quick blame game jump over data quality and then somehow eureka moment style statement “We need a data catalogue 😄 “. Building on the top of David Cox’s last question, do you also see data cleaning and data quality in the similar light? And, may you provide some thoughts around data catalogues for primal use to boost data quality. I am trying to explore to capture the knowledge “why you are cleaning that data” into some sort of another structured and persistent format (JSON/ YAML config file) rather than code only.
-
Tim Becker asked
Hi David Mertz, thank you for doing this. Does your book provide recipes for how to best solve different data cleaning tasks?
-
Tim Becker asked
What are in your opinion the most important things to improve in order to become more efficient at data cleaning?
-
A McCauley asked
Hi David Mertz data cleaning is quite a repetitive task, are you a fan of trying to automate as much of the process of data cleaning, such as stages of detecting areas that need cleaned etc?
-
WingCode asked
Hi David Mertz,
Thou book shall be hailed amongst thy mortal Data Engineers! Humor coupled with anything, I find is a fun way to learn about anything. I would love to read your book! I had a few questions:
1. Does one of the reasons. that data cleaning issue stems from the fact of not having proper schema registry or API format (OpenAPI) ? If we have proper schema registry in place everywhere, we can track the evolution of schema and schema registry itself ensure that missing fields, new fields, changes to schemas are handled. Using codegen coupled with API format, we can ensure that clients don't break with data changes.
2. One of the biggest problems I have faced with respect to data cleaning is deduplication. The same information can be represented in magnitudes of different ways. For example: 2 Product description of the latest & greatest phone. "This is the fastest phone from Pineapple with 256GB of RAM, 1GHz processor and available in all color spectrum under the RGB space" Vs "Coupled with 256GB of RAM, 1GHz processor and available in all colors you can dream of, this is the Pineapple phone". Is there any good library, frameworks which you found useful in deduplication of data?
3. Assume a Utopia ( that one I am dearly waiting for) every single person & organisation follows the same proper data standards (naming conventions, schema standards, JSON response standards). Do you think we will have data cleaning issues?
-
David Mertz
Author of the book
It's been nice having folks comment this week. I'm happy to reply for however many more hours the timezone indicates, or indeed in general personally, to any questions.
Can I ask participants a favor? Apparently more Amazon reviews helps convince them the promote my book, and Packt essentially makes itself a subsidiary of Amazon (not happy about that; but such is life). So if contributors to this thread write reviews (and buy the book, of course), it helps me.
Want the whole story?
The answers above are the short version of Cleaning Data for Effective Data Science.