Thanks for article ... but it would be nice to be able to follow along.
I found the dataset you used 'BPD_Arrests.csv' on Kaggle.
When following your code, you use:
crime_stats['Description'].unique()
but it should be
crime_stats['ChargeDescription'].unique()
You then use
prediction = crime_stats[[‘Weapon’]]
but this dataset does not have a key called 'Weapon'
Thanks for article - Learnt a WHOLE lot as I never really understood iterators in Python.
Using the Pez dispensers as a metaphor shows your age ;-)