def __init__(self, filename=None):
        self.filename = None
        if filename:
            self.load(filename)
def test_impl():
            A = StringArray(['ABC', 'BB', 'ADEF'])
            df = pd.DataFrame({'A': A})
            B = df.A.str.contains('AB*', regex=True)
            return B.sum()