Prepare and Enrich the Analysis Dataset
This section loads the source files, converts a text date field into a proper date/time format, then builds an extra lookup table from another dataset by finding each unique item and tagging it with a constant flag. That lookup is joined back to the main table to enrich each record, and missing values created by the join are filled in so the result is a cleaner, analysis-ready dataset. Finally, the data is filtered down to the subset of records used for the next EDA steps.