fips.Vector.xs#
- Vector.xs(key, axis=0, level=None, drop_level=True)#
Cross-select data based on index/column values.
- Parameters:
key (label or list of labels) – The key(s) to select.
axis ({0, 1, 'index', 'columns', 'both'}, default 0) – Axis to retrieve cross-section from.
level (int or str, optional) – If the index is a MultiIndex, level(s) to select on.
drop_level (bool, default True) – Whether to drop the level(s) from the resulting index.
- Returns:
The cross-section of the data corresponding to the key(s).
- Return type:
Series or DataFrame