def spacesCount(text):
            return len(text) - len(text.rstrip(' '))
def test_impl(df):
            A = df.A.str.split(',')
            B = pd.Series(list(itertools.chain(*A)))
            return B