Updates pandas_fun

Improves the way the plots are generated, cleans up some code