Conversation
|
Hi Martin, |
Hey Xiaoli, thanks for your feedback! I have added another small function that can basically convert any column into the 2 decimal format that you want. I applied it for |
I think I know why this happens. I have introduced a fix. Instead of assuming float it will convert string to float and then do the decimal rounding |
|
I have refactored some more. I am quite happy with the result, we are actually testing smaller parts now and now that they work on their own. Not sure if we should maybe add a test for the whole function |
Script/PRONTO.py
Outdated
| cell.text_frame.paragraphs[0].font.size = Pt(font_size) | ||
|
|
||
| # add table title | ||
| pronto.add_table_title(shapes, table_name, left_h, top_h, width_h, 0.25, 8, print_row_num, slide_idx, total_slides_needed, rows) |
There was a problem hiding this comment.
Do you want to use pronto.add_table_name here? I cannot find this function in the pronto module.
There was a problem hiding this comment.
yes, thanks for pointing that out! I fixed it
5d5ae85 to
bb2dacc
Compare
I hope my latest patch fixes this. Again, I would like to maybe use the different inputs for |


hey @xiaoliz0 ,
I have started on the refactoring. I have introduced pandas and moved the part that checks the column headers and moves the columns around in an extra function. I am keeping additional headers in the table but I place them to the far right so that they will get ignored with the current setup but I think we should discuss if they should be handled differently. I will continue with the refactoring but please feel free to give feedback and suggestions in the meantime.