MYYA
您可以使用groupby方法:from pandas import DataFramecolumns = ["b", "c", "d", "e"]data = [[100, 369, 203, 314], [100, 228, 784, 366], [200, 811, 664, 202], [200, 531, 932, 575]]df = DataFrame(data=data,columns=columns)def split_dfs(df, col): return [group[1] for group in list(df.groupby(col))]dfs = split_dfs(df, "b")for df_group in dfs: print(df_group) b c d e0 100 369 203 3141 100 228 784 366 b c d e2 200 811 664 2023 200 531 932 575