Module 5 · Clean It or It Lies

One video’s likes count is blank. What do you do about it?

Lesson 5.3 · What to Do With Blanks

Ashley · Rosa

Three ways to handle one blank. Three different answers.

One of Ashley’s videos has a blank where its likes count should be.

Ashley can drop the row, fill in a guess, or mark it unknown.

Rosa points out that each choice gives a different average, and none of them is the “right” one.

The short answer

She marks it unknown and writes “9 of 10 videos” under the average. When she needs a number for it later, she borrows video 4’s and says so. Neither is the truth. Both are honest.

Try it yourself

Tap each option to see what it does to the average likes.

Drop the row

Fill it with the average

Fill it with a similar video

Mark it unknown

What you just did has a name

Missing values and imputation

A blank is a missing value.

Filling it with a guess is imputation. Dropping the row is called listwise deletion, which is a fancy name for ignoring it.

Every dataset with people in it has missing values, and every analysis has to pick a policy.

A few more things

Why it’s missing matters

A like count missing because the export glitched is random. A like count missing because the video was set to private is not random, and dropping it changes who’s in the data. Ask why before you decide what.

Filling with the average shrinks the truth

It keeps the average where it was, but it makes the data look more uniform than it is. Do it for a hundred blanks and your spread, your chart and your model all get quietly overconfident.

Write it down

Whatever you pick, put it under the chart. “Blanks dropped, 9 of 10 videos.” Nobody minds a stated choice. Everybody minds a hidden one.

Go deeper

The longer version, if you want it.

Three kinds of missing

Statisticians sort missingness into three cases. Missing completely at random: the blank has nothing to do with anything (a glitch). Missing at random: the blank is related to other columns you have (older videos more often lack a count). Missing not at random: the blank is related to the missing value itself (videos with embarrassing like counts got hidden).

Dropping rows is roughly safe only in the first case. The third case can’t be fixed by any fill; it can only be acknowledged. Most real missingness is the second, which is why imputing from similar rows, like video 4, is the common compromise.

Quick check

Felix logs his 5k times all season but forgot one race. He types in his season average so the row isn’t empty. What just happened?

Let’s take it slower

Think of a blank as a hole in a fence. You have three moves. Walk past it and pretend the fence is shorter: that’s dropping the row. Nail in a board that looks like the others: that’s imputation, a guess dressed up as a fact. Or leave the hole and hang a sign on it: that’s marking it unknown. None of the three is cheating. What matters is picking one on purpose, asking why the board went missing in the first place, and telling whoever reads your chart which move you made.

More examples

1

The weather app gap

A weather station goes offline for a day and the app still shows the month’s average rainfall. It quietly filled the missing day using the days on either side. Reasonable guess, and you were never told a guess was made.

2

The bye week

A fantasy player has a bye week, so his points column is blank. Count it as zero and his season average tanks; skip the week and he looks better than a guy who actually played. Your league has to pick a rule, and the ranking depends on it.

Back to the question

So what does Ashley do about video 6?

Show the answer

She marks it unknown and writes “9 of 10 videos” under the average. When she needs a number for it later, she borrows video 4’s and says so. Neither is the truth. Both are honest.

One last question

Owen has opinions about blanks. Trust them?

“Filling a blank with the average keeps the average the same, so it can’t hurt anything.”

“Whatever you do with a blank, say what you did.”

“Why the value is missing can matter more than what you fill it with.”

Talk Card

Talk Card · 5.3

A blank can be dropped, filled or marked unknown, and each choice changes the answer. The only wrong move is not saying which one you made.

Data to AI · pettigrewlab.com/learn

Next lesson