jyt
parent
233a865f9d
commit
331551916d
|
@ -63,6 +63,8 @@ def do_the_difference(today_file, last_file, column_for_diff, fresh_output, expi
|
||||||
child_df_copy['jobId'] = 'i_' + child_df_copy['jobId'].astype(str)
|
child_df_copy['jobId'] = 'i_' + child_df_copy['jobId'].astype(str)
|
||||||
expired_df['jobId'] = expired_df['jobId'].astype(str)
|
expired_df['jobId'] = expired_df['jobId'].astype(str)
|
||||||
expired_df = pd.concat([expired_df, child_df_copy], ignore_index=True)
|
expired_df = pd.concat([expired_df, child_df_copy], ignore_index=True)
|
||||||
|
expired_df = expired_df.rename(columns={'jobId': 'Job Key'})
|
||||||
|
|
||||||
|
|
||||||
expired_df.to_csv(expired_output, index=False)
|
expired_df.to_csv(expired_output, index=False)
|
||||||
print(new_df.shape, expired_df.shape)
|
print(new_df.shape, expired_df.shape)
|
||||||
|
|
Loading…
Reference in New Issue