Pandas Styler set_sticky help #12488
              
                Unanswered
              
          
                  
                    
                      edumarcato
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    

Uh oh!
There was an error while loading. Please reload this page.
-
Description
Python: 3.12.6
quarto-cli==1.5.57
Hello, first of all - great working with quarto!
I am hitting some issues to render a panda data frame using the pandas styler / set_sticky .
https://pandas.pydata.org/docs/reference/api/pandas.io.formats.style.Styler.set_sticky.html
Expected: based on what's observed on a jupyter notebook, for a dataframe styled with set_sticky(axis='index') the index column should be frozen/fixed, so when scrolling left/right on a data frame the index can always be seen without overlapping with the other columns on the data frame - with the same code used on Scenario 2 below.
Observed behaviour:

On the qmd I have attached, on the Scenario 0 the index column either overlaps with the last hidden scrolled column. On scenarios 1 and 2, only the index name is frozen while the index values are not.
I have also attached the generated sample.hml.md
sample.html.md
Beta Was this translation helpful? Give feedback.
All reactions