def dictVals(l,key):
dicts=dictFlat(l)<EOL>vals=np.empty(len(dicts))*np.nan<EOL>for i in range(len(dicts)):<EOL><INDENT>if key in dicts[i]:<EOL><INDENT>vals[i]=dicts[i][key]<EOL><DEDENT><DEDENT>return vals<EOL>
Return all 'key' from a list of dicts. (or list of list of dicts)