# Why a basic four-hour Python course is worth an FDE's time

> The final chapter of DataCamp's course, on record linkage, matters most, but learn blocking before you run it on real client data.

Original: https://fdetimes.net/en/books-courses/cleaning-data-in-python-course-review/

"The customer table has duplicates that aren't really duplicates." AI Codex uses that line to describe what usually happens when an FDE runs the first real query on a client's data. The data is usually worse than the client says, and the problems surface the moment you touch it.

LeadDev tells a familiar story too: in a client's legacy system, free-text fields had been filled in for years, a different way each time, so long as it worked at the time. Many tables would not join with one another.

Before any agent or dashboard can run, that mess has to be cleaned up. This is why a short, seemingly basic course such as DataCamp's Cleaning Data in Python is worth four hours of an FDE's time.

## What do the four hours cover?

The course is taught by Adel Nehme, VP of Content at DataCamp. The current version was published on December 15, 2025. The course page opens with a line familiar to anyone in the trade: data scientists spend 80% of their time cleaning and manipulating data and only 20% analyzing it. The prerequisites are Python Toolbox and Joining Data with pandas.

There are four chapters. Common Data Problems has 11 exercises, Text and Categorical Data Problems has 10, Advanced Data Problems has 11 and Record Linkage has 12. Take them in the order the course sets out, so that by the final chapter the basic cleaning steps are second nature.

## Idea one: with the wrong data type, the code still runs and the result is wrong

The first chapter teaches you to check the type of every variable before doing anything else. The tools are .dtypes, .info(), .str.strip(), .astype() and the assert statement.

Take an orders table from a retail client where the revenue column is stored as strings such as "1200 ", with a trailing space. When you sum that column, pandas raises no error; it concatenates the strings.

The course teaches a three-step fix: strip, convert with astype, then write an assert that stops everything if the column still has the wrong type. The data types lesson does not mention pd.to_numeric. According to the pandas documentation, setting errors='coerce' turns values that cannot be parsed into NaN; the default, 'raise', throws an error straight away.

At a client, use both. The code below combines them on the same `orders` table:

```python
import pandas as pd

# Step 1: measure first. coerce turns broken values into NaN instead of crashing the whole call
raw = orders["revenue"].str.strip()
num = pd.to_numeric(raw, errors="coerce")
bad = num.isna() & raw.notna()   # count only the NaNs created by coerce
print(bad.sum(), "rows could not be parsed as numbers")
print(orders.loc[bad, "revenue"].head(10))

# Step 2: the course's approach, on the parseable rows: strip, convert, then assert
clean = orders.loc[~bad & raw.notna()].copy()
clean["revenue"] = clean["revenue"].str.strip().astype("int")
assert clean["revenue"].dtype == "int"
```

The number from the first print is the one to bring to the meeting, because it shows the client how many rows are broken. The second print shows how they are broken.

## Idea two: a value of the right type can still be absurd

The same orders table might contain order dates in the future. Chapter one teaches range constraints to remove data points like these, and dropping duplicate rows so nothing is counted twice.

Chapter three goes further with uniformity: a single weight column, say, where some rows are in pounds and others in kilograms. It also teaches cross-field validation and how to handle missing values.

**Key point:** Data can have the right type and still mean the wrong thing, and clients rarely volunteer that.

Chapter two targets exactly the free-text fields LeadDev describes, such as categories typed five or six different ways. The first job at a client is to turn these rules into asserts that run on every data load, rather than fixing things by hand once and leaving them.

## Idea three: near-duplicates are where the cost lies

AI Codex observes that true duplicates are easy to deal with; near-duplicates are the expensive ones. The course's final chapter tackles exactly this. You learn to link datasets with typos or differing spellings by computing similarity between strings. The last exercise merges two restaurant review datasets.

There is a limit the course does not spell out. Comparing every pair across two tables of 10,000 rows each means 100 million pairs. The Python Record Linkage Toolkit documentation explains why indexing and blocking are needed.

The Python Record Linkage Toolkit is a library for linking records, within a single data source or across several. With blocking, only pairs that share a surname are compared, so most pairs are discarded before any similarity is computed. Once you finish chapter four, read the library's documentation next.

## Who should take it, and how should it go on a CV?

The course suits backend or frontend engineers moving into FDE work who have not done much with pandas. If you already know pandas, skim the first three chapters and spend your time on Record Linkage.

Do not put a line such as "completed Cleaning Data course" on your CV. Build a small project on public data and record the before and after: how many rows were coerced to NaN, how many near-duplicate pairs were linked, and how far blocking cut the number of pairs to compare.

The first real query on a client's data will usually expose duplicates that aren't duplicates. At that point, what helps most is being able to tell the client exactly how many rows are affected.

**Try this week:**

- Take a public CSV, write three asserts on types and value ranges, and record how many rows fail
- Run pd.to_numeric(errors='coerce') on a numeric column stored as strings and print exactly the rows that became NaN
- Do the Record Linkage chapter, then redo the restaurant review merge with the Python Record Linkage Toolkit, with blocking

## Sources

- [Cleaning Data in Python | DataCamp](https://www.datacamp.com/courses/cleaning-data-in-python)

- [Cleaning Data in Python – Common Data Problems (DataCamp Campus)](https://campus.datacamp.com/courses/cleaning-data-in-python/common-data-problems-1?ex=1)

- [Cleaning Data in Python – Record Linkage (DataCamp Campus)](https://campus.datacamp.com/courses/cleaning-data-in-python/record-linkage-4?ex=12)

- [pandas.to_numeric — pandas documentation](https://pandas.pydata.org/docs/reference/api/pandas.to_numeric.html)

- [About — Python Record Linkage Toolkit documentation](https://recordlinkage.readthedocs.io/en/latest/about.html)

- [When the client's data is worse than they said (AI Codex)](https://www.aicodex.to/articles/fde-when-client-data-is-bad)

- [The reality of being a forward deployed engineer (FDE) (LeadDev)](https://leaddev.com/career-development/the-reality-of-being-a-forward-deployed-engineer-fde)
