The notebook opens original CSV extracts as pandas DataFrames. Inspect the columns before calculating: dates arrive as text until you convert them with pd.to_datetime, and missing dates become NaT. A Boolean filter needs parentheses around each comparison. Use isna for a missing value rather than comparing it with empty text. After a merge, count the intended entity instead of assuming every row still represents one person. The last expression is the answer checked by the notebook. You can use another valid pandas method if it produces the same result on both data copies. A hard-coded answer only works on the visible extract and will fail the hidden check.
Parenthesized masks combine the two boundaries; isna keeps people with an open employment episode.
Parenthesized masks combine the two boundaries; isna keeps people with an open employment episode.