def __getitem__(self, i):
    if isinstance(i, six.string_types):
        return self.pdf.iloc[self.i][self.name_to_column_map[i].index]
    else:
        return self.pdf.iloc[self.i][i]
def __getitem__(self, i):
    if isinstance(i, six.string_types):
        return self.pdf.iloc[self.i][self.name_to_column_map[i].index]
    else:
        return self.pdf.iloc[self.i][i]