This is exactly what ive been struggling with for these past couple of weeks.Im teaching myself data analytics and this video is making things so much better
Hello, I have an excel sheet which has some background colours in cells , while I am conditionally filtering and creating a new excel sheet using python pandas dataframe I am lossing the background colour in the cells. Can anyone help me how I can retain background colour ?
Thanks for the update!! You may be able to do some trickery to convert the dataframe to html first (which keeps the formatting) and then insert as an html block in streamlit?
This is exactly what ive been struggling with for these past couple of weeks.Im teaching myself data analytics and this video is making things so much better
Thanks so much!!
it's important to me that you know how much you're content helps me.
thank you so very much
Thank you so much, Evyatar! That means a lot to me!
great comprehensive and deep tutorial
Thank you
Thank you Dukaan!!
Any hints or tutorials on applying this to pivot tables?
An excellent tutorial, thank you so much
thank you
May I know when you used the styles in the second data frame , why $ sign not showing ?
Is there any way to output these styles to an excel file or CSV?
Hi Kobi! You can export to Excel by applying the .to_excel() method to the styler object (rather than just the DataFrame).
Hello, I have an excel sheet which has some background colours in cells , while I am conditionally filtering and creating a new excel sheet using python pandas dataframe I am lossing the background colour in the cells. Can anyone help me how I can retain background colour ?
How to apply colour for columns?
This styling passes into csv and excel files?
Unfortunately not! For that, you can use other libraries like openpyxl :)
wonder if this works with steramlit
Just checked. Does not work with streamlit when using pandas dataframe
Thanks for the update!! You may be able to do some trickery to convert the dataframe to html first (which keeps the formatting) and then insert as an html block in streamlit?
@@datagy Thanks for the idea. Will give it a shot
Nothing is working lol