File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -64,10 +64,10 @@ def test_to_latex(self, frame):
6464        withoutindex_result  =  df .to_latex (index = False )
6565        withoutindex_expected  =  r"""\begin{tabular}{rl} 
6666\toprule 
67-  a &    b \\ 
67+  a &  b \\ 
6868\midrule 
69-  1 &   b1 \\ 
70-  2 &   b2 \\ 
69+  1 & b1 \\ 
70+  2 & b2 \\ 
7171\bottomrule 
7272\end{tabular} 
7373""" 
@@ -423,7 +423,7 @@ def test_to_latex_longtable(self, frame):
423423        withoutindex_result  =  df .to_latex (index = False , longtable = True )
424424        withoutindex_expected  =  r"""\begin{longtable}{rl} 
425425\toprule 
426-  a &    b \\ 
426+  a &  b \\ 
427427\midrule 
428428\endhead 
429429\midrule 
@@ -433,8 +433,8 @@ def test_to_latex_longtable(self, frame):
433433
434434\bottomrule 
435435\endlastfoot 
436-  1 &   b1 \\ 
437-  2 &   b2 \\ 
436+  1 & b1 \\ 
437+  2 & b2 \\ 
438438\end{longtable} 
439439""" 
440440
@@ -490,8 +490,8 @@ def test_to_latex_no_header(self):
490490        withoutindex_result  =  df .to_latex (index = False , header = False )
491491        withoutindex_expected  =  r"""\begin{tabular}{rl} 
492492\toprule 
493-   1 &   b1 \\
494-   2 &   b2 \\
493+ 1 & b1 \\ 
494+ 2 & b2 \\ 
495495\bottomrule 
496496\end{tabular} 
497497""" 
@@ -517,10 +517,10 @@ def test_to_latex_specified_header(self):
517517        withoutindex_result  =  df .to_latex (header = ['AA' , 'BB' ], index = False )
518518        withoutindex_expected  =  r"""\begin{tabular}{rl} 
519519\toprule 
520- AA &   BB \\ 
520+ AA & BB \\ 
521521\midrule 
522-  1 &   b1 \\ 
523-  2 &   b2 \\ 
522+  1 & b1 \\ 
523+  2 & b2 \\ 
524524\bottomrule 
525525\end{tabular} 
526526""" 
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments