File tree 2 files changed +7
-2
lines changed
2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change 54
54
^^^
55
55
56
56
- Bug that would force importing of the clipboard routines unnecessarily, potentially causing an import error on startup (:issue:`16288`)
57
+ - Bug that raised IndexError HTML-rendering an empty DataFrame (:issue:`15953`)
57
58
58
59
59
60
Plotting
Original file line number Diff line number Diff line change @@ -103,11 +103,15 @@ def test_render(self):
103
103
s .render ()
104
104
# it worked?
105
105
106
- def test_render_empty_df (self ):
106
+ def test_render_empty_dfs (self ):
107
107
empty_df = DataFrame ()
108
108
es = Styler (empty_df )
109
109
es .render ()
110
- # It didn't raise IndexError?
110
+ # An index but no columns
111
+ DataFrame (columns = ['a' ]).style .render ()
112
+ # A column but no index
113
+ DataFrame (index = ['a' ]).style .render ()
114
+ # No IndexError raised?
111
115
112
116
def test_render_double (self ):
113
117
df = pd .DataFrame ({"A" : [0 , 1 ]})
You can’t perform that action at this time.
0 commit comments