**Examples**

In [1]:

```
import numpy as np
import pandas as pd
```

In [2]:

```
df = pd.DataFrame({'cost': [200, 150, 100],
'revenue': [100, 200, 250]},
index=['P', 'Q', 'R'])
df
```

Out[2]:

Compare to a MultiIndex by level:

In [3]:

```
df_multindex = pd.DataFrame({'cost': [200, 150, 100, 150, 250, 120],
'revenue': [100, 200, 250, 180, 155, 125]},
index=[['A1', 'A1', 'A1', 'A2', 'A2', 'A2'],
['P', 'Q', 'R', 'P', 'Q', 'R']])
df_multindex
```

Out[3]:

In [4]:

```
df.le(df_multindex, level=1)
```

Out[4]: