Insert table to ppt#99
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 |
| 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 |
|
Hi Martin, your updated codes are still not working with the data in our side. Maybe it is better we check this together in the meeting on Thursday? |
|
I think I fixed the codes with a new commit. Not sure if the push command is correctly. :) |
I don't see any new commit from you, did you push something? Or was it the last commit I had pushed that fixed the issue? |
No, I think my commit creates another branch with PR99. I will try to commit here. |
xiaoliz0
left a comment
There was a problem hiding this comment.
Fix some codes to make it work at OUS.
Co-authored-by: Xiaoli Zhang <81294502+xiaoliz0@users.noreply.github.com>
|
feel free to merge if this works for you |


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.