reduce_data function

Preprocessing Step to Rolling Entry Matching