【问题标题】:How can I get from this dataframe to a dictionary in the most efficient way?如何以最有效的方式从这个数据框获取字典? 【发布时间】:2022-06-15 19:53:06 【问题描述】: 在Python中,我如何从下面的Dataframe得到 ...以最有效的方式转到以下字典结构之一? Dictionary structure 1 Dictionary structure 2 非常感谢您的支持! 最好的问候, 丹尼斯 【问题讨论】: 您好,欢迎您。如果您可以查看How to Ask,然后尝试生成minimal reproducible example,那就太好了。 标签: python pandas dictionary