Skip to content

Commit

Permalink
DOC: Added the note for display.max_colwidth in dsintro.rst
Browse files Browse the repository at this point in the history
closes #9784
closes #12682
  • Loading branch information
prabhjotsumman authored and jreback committed Apr 4, 2016
1 parent c3ab8b1 commit 610d3d5
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions doc/source/dsintro.rst
Expand Up @@ -720,10 +720,25 @@ option:
pd.DataFrame(np.random.randn(3, 12))
You can adjust the max width of the individual columns by setting ``display.max_colwidth``

.. ipython:: python
datafile={'filename': ['filename_01','filename_02'],
'path': ["media/user_name/storage/folder_01/filename_01",
"media/user_name/storage/folder_02/filename_02"]}
pd.set_option('display.max_colwidth',30)
pd.DataFrame(datafile)
pd.set_option('display.max_colwidth',100)
pd.DataFrame(datafile)
.. ipython:: python
:suppress:
pd.reset_option('display.width')
pd.reset_option('display.max_colwidth')
You can also disable this feature via the ``expand_frame_repr`` option.
This will print the table in one block.
Expand Down

0 comments on commit 610d3d5

Please sign in to comment.