def get_categorical_columns(X):
    """Get all categorical features from a pandas DataFrame.

    This function selects all categorical columns from a pandas
    DataFrame that are within the ``object`` or ``category`` family.

    Parameters
    ----------
    X : pd.DataFrame
        The input dataframe.
    """
    return X.select_dtypes(include=['object', 'category'])
