Created
March 2, 2016 10:21
-
-
Save avishekrk/6306e6ac7a8f35297d4d to your computer and use it in GitHub Desktop.
fivens_cols
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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