Replaced mlab with pandas and updated regression test