Skip to content

Commit 5ca86a5

Browse files
committed
update docs
1 parent 0b1e930 commit 5ca86a5

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

doc/source/user_guide/style.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
"cell_type": "markdown",
110110
"metadata": {},
111111
"source": [
112-
"The `row0_col2` is the identifier for that particular cell. We've also prepended each row/column identifier with part of a universally unique identifier (UUID) having 16-bits of randomness to each DataFrame so that the style from one doesn't collide with the styling from another within the same notebook or page (you can set the `uuid` if you'd like to tie together the styling of two DataFrames, or if for any reason you need more randomness).\n",
112+
"The `row0_col2` is the identifier for that particular cell. We've also prepended each row/column identifier with part of a universally unique identifier (UUID) having 20-bits of randomness to each DataFrame so that the style from one doesn't collide with the styling from another within the same notebook or page (you can set the `uuid` if you'd like to tie together the styling of two DataFrames, or if for any reason you need more randomness).\n",
113113
"\n",
114114
"When writing style functions, you take care of producing the CSS attribute / value pairs you want. Pandas matches those up with the CSS classes that identify each cell."
115115
]
@@ -1241,4 +1241,4 @@
12411241
},
12421242
"nbformat": 4,
12431243
"nbformat_minor": 1
1244-
}
1244+
}

pandas/io/formats/style.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ def __init__(
159159
self.index = data.index
160160
self.columns = data.columns
161161

162-
self.uuid = uuid or (uuid4().hex[:4] + "_")
162+
self.uuid = uuid or (uuid4().hex[:5] + "_")
163163
self.table_styles = table_styles
164164
self.caption = caption
165165
if precision is None:
@@ -834,9 +834,6 @@ def set_tooltips(self, ttips: DataFrame):
834834
Tooltips are not designed to be efficient, and can add large amounts of
835835
additional HTML for larger tables, since they also require that `cell_ids`
836836
is forced to `True`.
837-
838-
:param ttips:
839-
:return:
840837
"""
841838
if not (self.columns.equals(ttips.columns) and self.index.equals(ttips.index)):
842839
raise AttributeError(

0 commit comments

Comments
 (0)