Added pandas_output argument and removed output of pretty-print string