Skip to content

Commit 673fb8f

Browse files
committed
Fix versionadded
1 parent 506f3d2 commit 673fb8f

File tree

2 files changed

+5
-23
lines changed

2 files changed

+5
-23
lines changed

doc/source/html-styling.ipynb

+2-22
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
{
22
"cells": [
33
{
4-
"cell_type": "code",
5-
"execution_count": null,
4+
"cell_type": "markdown",
65
"metadata": {
76
"collapsed": true
87
},
9-
"outputs": [],
108
"source": [
119
"*New in version 0.17.1*\n",
1210
"\n",
@@ -35,24 +33,6 @@
3533
"- [Extensibility](#Extensibility)"
3634
]
3735
},
38-
{
39-
"cell_type": "code",
40-
"execution_count": null,
41-
"metadata": {
42-
"collapsed": true
43-
},
44-
"outputs": [],
45-
"source": []
46-
},
47-
{
48-
"cell_type": "code",
49-
"execution_count": null,
50-
"metadata": {
51-
"collapsed": true
52-
},
53-
"outputs": [],
54-
"source": []
55-
},
5636
{
5737
"cell_type": "markdown",
5838
"metadata": {},
@@ -614,7 +594,7 @@
614594
"cell_type": "markdown",
615595
"metadata": {},
616596
"source": [
617-
"New in version 0.19.2 is the ability to customize further the bar chart: You can now have the `df.style.bar` be centered on zero or midpoint value (in addition to the already existing way of having the min value at the left side of the cell), and you can pass a list of `[color_negative, color_positive]`.\n",
597+
"New in version 0.20.0 is the ability to customize further the bar chart: You can now have the `df.style.bar` be centered on zero or midpoint value (in addition to the already existing way of having the min value at the left side of the cell), and you can pass a list of `[color_negative, color_positive]`.\n",
618598
"\n",
619599
"The following example shows the behavior of the new align options:"
620600
]

pandas/formats/style.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -986,7 +986,9 @@ def bar(self, subset=None, align='left', axis=0,
986986
A number between 0 or 100. The largest value will cover ``width``
987987
percent of the cell's width
988988
align : str, default 'left'
989-
.. versionadded:: 0.19.2
989+
990+
.. versionadded:: 0.20.0
991+
990992
- 'left' : the min value starts at the left of the cell
991993
- 'zero' : a value of zero is located at the center of the cell
992994
- 'mid' : the center of the cell is at (max-min)/2, or

0 commit comments

Comments
 (0)