python - data extraction from dictionary -


i want extract data dictionary. wrote following code

subarray = {    'chr1': data[data[:,0] == 'chr1'],    'chr2': data[data[:,0] == 'chr2'] } the_key, the_value in subarray.iteritems():    cnt = len(subarray)    in range(cnt):         lst = the_value[i]        chr_name = lst[0]        first_cord = lst[1]        second_cord = lst[2] 

i not able extract whole data form list in dictionary getting 23 data points. getting following error

indexerror: index 19 out of bounds axis 0 size 19 


Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -