It doesn't help that AI generally creates very mediocre Pandas code (based on a lot of the training data showing mediocre practices).
To offset all the bad code, you would have to make a Pandas fine tune and/or ablate the bad Pandas from the weights.
Any time ive had to use pandas I am shocked at how convuluted and opaque the docs are, and end up just hacking away till something wirks alright.
I've also been wanting to play with Ibis[1] recently, but Polars has been sufficient for me.
What helped me with Pandas was a (very) short stint with array programming, specifically uiua. It gave me a good understanding of the possible operations on arrays.
The guy two comments up wrote a great book on using pandas effectively. It’s called Effective Pandas