我有两个 numpy.ndarray
[[' THE OLD TESTAMENT ']
[' SEAN SONG ']
[' CITY WALK ']]
和
[[' This is the name of an Old Testament ']
[' Hello this is great ']
[' Wait the way you are doing ']]
我想将这些 ndarray 转换为字典。
{
"THE OLD TESTAMENT": "This is the name of an Old Testament",
"SEAN SONG": "Hello this is great",
"CITY WALK": Wait the way you are doing
}
我正在使用下面写的代码
keys = df.as_matrix()
print (keys)
values = df1.as_matrix()
print (values)
new_dict = dict(izip(keys, values))
白猪掌柜的
相关分类