Datamining replacements

I’m trying to make my own application datamining to have a saved copy with to be able to compare some data. I’ve used the guide of this forum, but the code is not as clean as you can see in the last channel video.
I guess the guide is outdated, does anyone know which are the replacements that are currently used?

Thank you very much.