Skip to content

Instantly share code, notes, and snippets.

@avishekrk
Created March 2, 2016 10:21
Show Gist options
  • Save avishekrk/6306e6ac7a8f35297d4d to your computer and use it in GitHub Desktop.
Save avishekrk/6306e6ac7a8f35297d4d to your computer and use it in GitHub Desktop.
fivens_cols
def fivens_cols(parm):
sort = {}
fivens_cols = []
for col in fivedfi_dict['pctdfi'].columns:
if 'md' in col:
continue
if 'ENM' in col:
continue
start, end = col.split('_')
start = int(start)
end = int(end)
delta = end - start
#print col,delta
if delta == 500:
fivens_cols.append(col)
sort[start] = col
print sort
sort_keys=np.sort(sort.keys())
return [sort[key] for key in sort_keys ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment