Or you can just write the code to do it correctly. Which would be quicker. If you can review it properly you already understand how to do it.

That would require me to have memorized the pandas API.

I've been using pandas on-and-off for over a decade and I still haven't come close to doing that.