import pandas as pd
from io import StringIO
df = pd.read_csv(StringIO("""A   1
B   2
A   3
B   4"""), sep='\\s+', names
    =['ind', 'value'])
lst = [g for _, g in df.groupby('ind')]
lst[0]
python split pd dataframe by column