(current_table, new_table)
| 35 | |
| 36 | |
| 37 | def merge_tables(current_table, new_table): |
| 38 | table = current_table.merge(new_table, left_on=current_table.columns[0], right_on='Dockerfile', how='left', |
| 39 | suffixes=('_old', '')) |
| 40 | table.drop(columns=[x for x in table.columns if x.endswith('_old')], inplace=True) |
| 41 | table.sort_values('Size', inplace=True) |
| 42 | table['Size'] = table['Size'].apply(lambda x: f"{x:.04g}") + " MB" |
| 43 | return table |
| 44 | |
| 45 | |
| 46 | def write_table(readme, table, table_start): |