https://machinelearningmodels.org/optimizing-nested-data-in-machine-learning-models/
Optimizing Nested Data in Machine Learning Models