File tree 1 file changed +11
-11
lines changed
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):
64
64
withoutindex_result = df .to_latex (index = False )
65
65
withoutindex_expected = r"""\begin{tabular}{rl}
66
66
\toprule
67
- a & b \\
67
+ a & b \\
68
68
\midrule
69
- 1 & b1 \\
70
- 2 & b2 \\
69
+ 1 & b1 \\
70
+ 2 & b2 \\
71
71
\bottomrule
72
72
\end{tabular}
73
73
"""
@@ -423,7 +423,7 @@ def test_to_latex_longtable(self, frame):
423
423
withoutindex_result = df .to_latex (index = False , longtable = True )
424
424
withoutindex_expected = r"""\begin{longtable}{rl}
425
425
\toprule
426
- a & b \\
426
+ a & b \\
427
427
\midrule
428
428
\endhead
429
429
\midrule
@@ -433,8 +433,8 @@ def test_to_latex_longtable(self, frame):
433
433
434
434
\bottomrule
435
435
\endlastfoot
436
- 1 & b1 \\
437
- 2 & b2 \\
436
+ 1 & b1 \\
437
+ 2 & b2 \\
438
438
\end{longtable}
439
439
"""
440
440
@@ -490,8 +490,8 @@ def test_to_latex_no_header(self):
490
490
withoutindex_result = df .to_latex (index = False , header = False )
491
491
withoutindex_expected = r"""\begin{tabular}{rl}
492
492
\toprule
493
- 1 & b1 \\
494
- 2 & b2 \\
493
+ 1 & b1 \\
494
+ 2 & b2 \\
495
495
\bottomrule
496
496
\end{tabular}
497
497
"""
@@ -517,10 +517,10 @@ def test_to_latex_specified_header(self):
517
517
withoutindex_result = df .to_latex (header = ['AA' , 'BB' ], index = False )
518
518
withoutindex_expected = r"""\begin{tabular}{rl}
519
519
\toprule
520
- AA & BB \\
520
+ AA & BB \\
521
521
\midrule
522
- 1 & b1 \\
523
- 2 & b2 \\
522
+ 1 & b1 \\
523
+ 2 & b2 \\
524
524
\bottomrule
525
525
\end{tabular}
526
526
"""
You can’t perform that action at this time.
0 commit comments