Skip to content

Commit

Permalink
Get unique project ID(s)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhailuo committed Feb 4, 2018
1 parent 0c73b7e commit 4f9d3a3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gdc_check_new.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,13 @@ def main():
'analysis.workflow_type'],
method='POST'
)
try:
df['cases'] = df['cases'].map(
lambda c: ', '.join({p['project']['project_id']
for p in c})
)
except:
pass
df_list.append(df)
df = pd.concat(df_list, axis=0)
try:
Expand Down

0 comments on commit 4f9d3a3

Please sign in to comment.