File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 19
19
import types
20
20
import warnings
21
21
from textwrap import dedent
22
- from uuid import uuid1
23
22
24
23
import numpy as np
25
24
import numpy .ma as ma
@@ -675,11 +674,9 @@ def _repr_html_(self):
675
674
max_rows = get_option ("display.max_rows" )
676
675
max_cols = get_option ("display.max_columns" )
677
676
show_dimensions = get_option ("display.show_dimensions" )
678
- unique_id = str (uuid1 ())
679
677
680
678
return self .to_html (max_rows = max_rows , max_cols = max_cols ,
681
- show_dimensions = show_dimensions , notebook = True ,
682
- table_id = unique_id )
679
+ show_dimensions = show_dimensions , notebook = True )
683
680
else :
684
681
return None
685
682
Original file line number Diff line number Diff line change @@ -1205,6 +1205,7 @@ def write_style(self):
1205
1205
1206
1206
def write_result (self , buf ):
1207
1207
indent = 0
1208
+ id_section = ""
1208
1209
frame = self .frame
1209
1210
1210
1211
_classes = ['dataframe' ] # Default class.
@@ -1228,8 +1229,9 @@ def write_result(self, buf):
1228
1229
self .write ('<div{style}>' .format (style = div_style ))
1229
1230
1230
1231
self .write_style ()
1231
- id_section = ' id="{table_id}"' .format (table_id = self .table_id )\
1232
- if self .table_id is not None else ""
1232
+
1233
+ if self .table_id is not None :
1234
+ id_section = ' id="{table_id}"' .format (table_id = self .table_id )
1233
1235
self .write ('<table border="{border}" class="{cls}"{id_section}>'
1234
1236
.format (border = self .border , cls = ' ' .join (_classes ),
1235
1237
id_section = id_section ), indent )
You can’t perform that action at this time.
0 commit comments