This is Matthew Taruno's from scratch implementations of a lot of concepts in ML and statistics. He thinks it is one of the best ways to learn these concepts.
Inspiration was taken from https://github.com/eriklindernoren/ML-From-Scratch/blob/master/mlfromscratch/utils/data_manipulation.py.