相关疑难解决方法(0)

python pandas dataframe to dictionary

我有一个两列数据帧,并打算将其转换为python字典 - 第一列将是键,第二列将是值.先感谢您.

数据帧:

    id    value
0    0     10.2
1    1      5.7
2    2      7.4
Run Code Online (Sandbox Code Playgroud)

python dictionary pandas

86
推荐指数
8
解决办法
13万
查看次数

标签 统计

dictionary ×1

pandas ×1

python ×1