pandas.Index.get_level_values

Index.get_level_values(level) [source]

Return an Index of values for requested level, equal to the length of the index.

Parameters:

level : int or str

level is either the integer position of the level in the MultiIndex, or the name of the level.

Returns:

values : Index

self, as there is only one level in the Index.

See also

pandas.MultiIndex.get_level_values
get values for a level of a MultiIndex

© 2008–2012, AQR Capital Management, LLC, Lambda Foundry, Inc. and PyData Development Team
Licensed under the 3-clause BSD License.
https://pandas.pydata.org/pandas-docs/version/0.23.4/generated/pandas.Index.get_level_values.html