-
Notifications
You must be signed in to change notification settings - Fork 33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Way to change the cell colors and border? #8
Comments
It isn't supported at the moment in PandasToPowerpoint itself, but you should be able to use the python-pptx library to alter the table once PandasToPowerpoint has created it. Use the
This should set the top left cell to have a red background. I don't think support for borders has yet been implemented in python-pptx, so I can't yet support them in PandasToPowerpoint. |
When df_to_table writes a table to a slide, what is the table object called? I'm trying to apply formatting but using "tbl" is giving me an error. |
I haven't used this code myself for a while, but I've had a quick look at the code (see https://github.com/robintw/PandasToPowerpoint/blob/master/pd2ppt/pd2ppt.py#L126). It seems that the object returned from |
Thank you. That did it. |
Is there a way to change the default cell and border colors?
The text was updated successfully, but these errors were encountered: