Skip to content

Commit

Permalink
DOC: Improve options.rst (pandas-dev#46124)
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke authored Feb 26, 2022
1 parent 541bbf9 commit c492672
Show file tree
Hide file tree
Showing 7 changed files with 59 additions and 284 deletions.
Binary file removed doc/source/_static/option_unicode01.png
Binary file not shown.
Binary file removed doc/source/_static/option_unicode02.png
Binary file not shown.
Binary file removed doc/source/_static/option_unicode03.png
Binary file not shown.
Binary file removed doc/source/_static/option_unicode04.png
Binary file not shown.
327 changes: 49 additions & 278 deletions doc/source/user_guide/options.rst

Large diffs are not rendered by default.

8 changes: 2 additions & 6 deletions doc/source/whatsnew/v0.17.0.rst
Original file line number Diff line number Diff line change
Expand Up @@ -363,16 +363,12 @@ Some East Asian countries use Unicode characters its width is corresponding to 2
.. ipython:: python
df = pd.DataFrame({u"国籍": ["UK", u"日本"], u"名前": ["Alice", u"しのぶ"]})
df;
.. image:: ../_static/option_unicode01.png
df
.. ipython:: python
pd.set_option("display.unicode.east_asian_width", True)
df;
.. image:: ../_static/option_unicode02.png
df
For further details, see :ref:`here <options.east_asian_width>`

Expand Down
8 changes: 8 additions & 0 deletions pandas/_config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ def __doc__(self):
Notes
-----
Please reference the :ref:`User Guide <options>` for more information.
The available options with its descriptions:
{opts_desc}
Expand Down Expand Up @@ -323,6 +325,8 @@ def __doc__(self):
Notes
-----
Please reference the :ref:`User Guide <options>` for more information.
The available options with its descriptions:
{opts_desc}
Expand Down Expand Up @@ -355,6 +359,8 @@ def __doc__(self):
Notes
-----
Please reference the :ref:`User Guide <options>` for more information.
The available options with its descriptions:
{opts_desc}
Expand Down Expand Up @@ -385,6 +391,8 @@ def __doc__(self):
Notes
-----
Please reference the :ref:`User Guide <options>` for more information.
The available options with its descriptions:
{opts_desc}
Expand Down

0 comments on commit c492672

Please sign in to comment.