featurize entire dataset; fix filtering of final line