This is not a clickbait. I wrote the code as it is for a project I was working on. When you are inexperienced and under pressure, you don’t have the time to read the manual.
The story is intended for pandas noobs. If you would like to read an advanced tutorial, read: https://towardsdatascience.com/5-lesser-known-pandas-tricks-e8ab1dd21431