Skip to content

Commit

Permalink
Remove artificial columns in gsheet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
arteymix committed Oct 26, 2021
1 parent 8d47b3d commit 6d1aecc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rnaseq_pipeline/gsheet.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def retrieve_spreadsheet(spreadsheet_id, sheet_name):
rnaseq_pipeline_queue = service.spreadsheets().values().get(spreadsheetId=spreadsheet_id, range=sheet_name).execute()

# this will fail if people add new columns
df = pd.DataFrame(rnaseq_pipeline_queue['values'][1:], columns=rnaseq_pipeline_queue['values'][0]+list(range(2)))
df = pd.DataFrame(rnaseq_pipeline_queue['values'][1:], columns=rnaseq_pipeline_queue['values'][0])

# type adjustment
df['priority'] = df.priority.fillna(0).replace('', '0').astype('int')
Expand Down

0 comments on commit 6d1aecc

Please sign in to comment.