@xfail_missing_list_dict_encode
def test_groupby_extension_transform(self, data_for_grouping):
    if pa.types.is_boolean(data_for_grouping.dtype.arrow_dtype):
        valid = data_for_grouping[(~ data_for_grouping.isna())]
        df = pd.DataFrame({'A': [1, 1, 3, 3, 1, 4], 'B': valid})
        result = df.groupby('B').A.transform(len)
        expected = pd.Series([3, 3, 3, 3, 3, 3], name='A')
        self.assert_series_equal(result, expected)
    else:
        BaseGroupbyTests.test_groupby_extension_transform(self, data_for_grouping)
@xfail_missing_list_dict_encode
def test_groupby_extension_transform(self, data_for_grouping):
    if pa.types.is_boolean(data_for_grouping.dtype.arrow_dtype):
        valid = data_for_grouping[(~ data_for_grouping.isna())]
        df = pd.DataFrame({'A': [1, 1, 3, 3, 1, 4], 'B': valid})
        result = df.groupby('B').A.transform(len)
        expected = pd.Series([3, 3, 3, 3, 3, 3], name='A')
        self.assert_series_equal(result, expected)
    else:
        BaseGroupbyTests.test_groupby_extension_transform(self, data_for_grouping)