Skip to content

Commit

Permalink
Remove dashes from column headers
Browse files Browse the repository at this point in the history
they make problems to processing scripts
  • Loading branch information
jesusff authored Nov 5, 2024
1 parent 9b4c0a3 commit 7d0cb03
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions merged_html.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
data_request_fpsconv.set_index(['out_name', 'frequency'], inplace=True)

data_request['priority'] = 'I4C-' + data_request['priority'].astype(str)
data_request_fpsurbrcc.rename(columns={'priority': 'priority-urb'}, inplace=True)
data_request_fpsurbrcc['priority-urb'] = 'URB-' + data_request_fpsurbrcc['priority-urb'].astype(str)
data_request_fpsconv.rename(columns={'priority': 'priority-conv'}, inplace=True)
data_request_fpsconv['priority-conv'] = 'CONV-' + data_request_fpsconv['priority-conv'].astype(str)
data_request_fpsurbrcc.rename(columns={'priority': 'priority_urb'}, inplace=True)
data_request_fpsurbrcc['priority_urb'] = 'URB-' + data_request_fpsurbrcc['priority_urb'].astype(str)
data_request_fpsconv.rename(columns={'priority': 'priority_conv'}, inplace=True)
data_request_fpsconv['priority_conv'] = 'CONV-' + data_request_fpsconv['priority_conv'].astype(str)

columns_all = ['units', 'long_name', 'standard_name', 'priority', 'priority-urb', 'priority-conv', 'comment', 'cell_measures', 'cell_methods', 'dimensions', 'ok_max_mean_abs', 'ok_min_mean_abs', 'positive', 'type', 'valid_max', 'valid_min']
columns_display = ['units', 'long_name', 'priority', 'priority-urb', 'priority-conv', 'comment']
columns_all = ['units', 'long_name', 'standard_name', 'priority', 'priority_urb', 'priority_conv', 'comment', 'cell_measures', 'cell_methods', 'dimensions', 'ok_max_mean_abs', 'ok_min_mean_abs', 'positive', 'type', 'valid_max', 'valid_min']
columns_display = ['units', 'long_name', 'priority', 'priority_urb', 'priority_conv', 'comment']

merged_df = data_request.combine_first(data_request_fpsurbrcc).combine_first(data_request_fpsconv)
merged_df.loc[:,columns_all].reset_index().to_csv(f'docs/{csvout}', index=False)
Expand Down

0 comments on commit 7d0cb03

Please sign in to comment.