Horje
python dictionary to array Code Example
python dictionary to array
dict = {"a": 1, "b": 2, "c": 3, "d": 4}

data = list(dict.items())
an_array = np.array(data)

print(an_array)
OUTPUT
[['a' '1']
 ['b' '2']
 ['c' '3']
 ['d' '4']]
Source: kite.com




Python

Related
pattern in python Code Example pattern in python Code Example
replace values in a column by condition python Code Example replace values in a column by condition python Code Example
flask debugtoolbar Code Example flask debugtoolbar Code Example
python tar a directory Code Example python tar a directory Code Example
write page source to text file python Code Example write page source to text file python Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7