Changed map function to return multiindex pandas tables