def _get_level_values(self, level, unique=False):
values = self.levels[level]<EOL>level_codes = self.codes[level]<EOL>if unique:<EOL><INDENT>level_codes = algos.unique(level_codes)<EOL><DEDENT>filled = algos.take_1d(values._values, level_codes,<EOL>fill_value=values._na_value)<EOL>values = values._shallow_copy(filled)<EOL>return values<EOL>
Return vector of label values for requested level,
equal to the length of the index

**this is an internal method**

Parameters
----------
level : int level
unique : bool, default False
    if True, drop duplicated values

Returns
-------
values : ndarray