index = MultiIndex.from_tuples(columns, names=['A', 'B'])
df = DataFrame(data, index=['x', 'y', 'z'], columns=index)
sub = df['bar']['one'] - df['flux']['six']
print(sub)
df['new', 'col'] = sub
print(df)
Pandas eval with multi-index dataframes