map over arrays in array python code example
Example 1: python loop through array of dictionaries
dataList = [{'a': 1}, {'b': 3}, {'c': 5}]
for index in range(len(dataList)):
for key in dataList[index]:
print(dataList[index][key])
Example 2: for with key value over numpy array py
for idx, j in enumerate(theta):
some_function(idx, j, theta)