Most of the data sources in the Project 4 brief have a pitfall or two that can cost a few days if you find it late. Read the entry for your source before you start. If your data comes from somewhere else, the last section still applies.
SEC EDGAR
Identify your script. The SEC asks that a script identify itself and stay under about 10 requests a second, so tell the AI to set a user agent with your contact details.
Year-to-date values sit next to quarterly ones. Quarterly filings tag year-to-date six- and nine-month values next to the three-month ones, so filter on the period's start and end dates.
The fourth quarter is usually missing. It is usually not tagged at all and has to be derived as the year minus nine months.
Revenue changed names. Revenue moved between tags around 2018 (the new revenue standard), so one company's series can sit under two names.
SBA loan data
Use an older approval cohort. Recent loans have not had time to go bad, and dropping them makes early failures look common.
Some columns give away the answer. Columns such as the charge-off date, the charge-off amount and the paid-in-full date leak the answer and have to come out.
Leave PPP loans out. PPP is a different program, where forgiveness is not a charge-off.
USAspending.gov
Filter to one agency. A full year runs to millions of rows, past Excel's limit.
Corrections are negative amounts. They can dominate an outlier score.
Two grains. Transactions and award summaries are different grains, so know which one you downloaded.
Kaggle
You need your own account to download data, and the university does not provide one.
Quality varies. Check where the data came from and whether its license allows your use.
Any source
Open it before you commit. Confirm the data holds the columns you think it does, rather than trusting the description on the download page.
Count what you are predicting. If you predict a rare yes or no event, count the events first. You want about 50 or more in total, so your test rows hold at least 15 to 20.
Drop personal columns. Public files can still contain names and addresses. Drop those columns before you start.