I learned a lot of R with the swirl package. I wanted something similar to learn pandas, so I hacked "Swirly". I hope you find it useful!
It's still a work in progress, so I'll be more than glad to receive your help and contributions.