macpie.pandas.filter_labels_pair#
- macpie.pandas.filter_labels_pair(left: DataFrame, right: DataFrame, axis=None, **kwargs)#
Filter row or column labels on a pair of dataframes.
- Parameters:
- leftDataFrame
- rightDataFrame
- axis{0 or index, 1 or columns, None}, default None
The axis to filter labels on, expressed either as an index (int) or axis name (str). By default this is the info axis, ‘index’ for Series, ‘columns’ for DataFrame.
- **kwargs
All remaining keyword arguments are passed through to the underlying
macpie.lltools.filter_seq_pair()
function to perform the actual label filtering.
- Returns:
- Tuple[Tuple[str, str], Tuple[str, str]]
((left_labels_kept, right_labels_kept), (left_labels_discarded, right_labels_discarded))