【问题标题】: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

非常感谢您的支持!

最好的问候,

丹尼斯

【问题讨论】:

标签: python pandas dictionary


猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2018-09-05
  • 1970-01-01
  • 1970-01-01
  • 2018-07-21
  • 2022-10-23
  • 2020-11-23
  • 2015-10-29
相关资源
最近更新 更多