I have two numpy.ndarray
[[' THE OLD TESTAMENT ']
[' SEAN SONG ']
[' CITY WALK ']]
and
[[' This is the name of an Old Testament ']
[' Hello this is great ']
[' Wait the way you are doing ']]
I want to convert these ndarray to dictionary.
{
"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
}
I am using the code written below
keys = df.as_matrix()
print (keys)
values = df1.as_matrix()
print (values)
new_dict = dict(izip(keys, values))