def __init__(self, series):
    super(StringMethods, self).__init__(series)
    assert ty.is_string_dtype(self._column.dtype)
def __init__(self, series):
    super(StringMethods, self).__init__(series)
    assert ty.is_string_dtype(self._column.dtype)