我有这样的输出:
nutrition_info_256174499 = df1.loc[:"Salt" , "%Reference Intake*"]
print (nutrition_info_256174499)
Typical Values
Energy 5%
Fat 1%
of which saturates 1%
Carbohydrates 7%
of which sugars 2%
Fibre -
Protein 7%
Salt 6%
Name: %Reference Intake*, dtype: object
如何在输出的末尾同时删除名称和数据类型?
"Salt"
应该是切片的终点。我发布了一个带有这个解决方案工作版本的答案 :) - wjandrea