Skip to content

Commit 4f105d6

Browse files
committed
examples
1 parent 85e5241 commit 4f105d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pandas/io/formats/style.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1915,6 +1915,14 @@ def highlight_quantile(
19151915
19161916
This method uses ``pandas.qcut`` to implement the quantile labelling of data
19171917
values.
1918+
1919+
Examples
1920+
--------
1921+
>>> df = pd.DataFrame(np.arange(1,100).reshape(10,10)+1)
1922+
>>> df.style.highlight_quantile(q_low=0.5, q_high=0.7, axis=None)
1923+
>>> df.style.highlight_quantile(q_low=0.5, q_high=0.7, axis=0)
1924+
>>> df.style.highlight_quantile(q_low=0.5, q_high=0.7, axis=1)
1925+
>>> df.style.highlight_quantile(q_low=0.5, props='font-weight:bold;color:red')
19181926
"""
19191927

19201928
def f(

0 commit comments

Comments
 (0)