如果要为所有区域创建单独的数据帧,请创建一个循环并将每个数据帧存储在数据帧字典中,如下所示:dfs = ['df' + str(x) for x in list(wine['Region'].unique())]dicdf = dict()i = 0 while i < len(dfs): dicdf[dfs[i]] = wine[(wine['Region']==list(wine['Region'].unique())[i])] i = i + 1print(dicdf)这将打印数据框的字典。您可以打印您喜欢查看的数据帧,例如'Americas':print(dicdf['dfAmericas'])需要帮助请叫我。