Skip to content

Commit 170cf12

Browse files
committed
Merge pull request #8418 from cstoafer/docs
Moved startup script information to options docs and fixed link
2 parents 863c891 + c011ee5 commit 170cf12

File tree

2 files changed

+19
-22
lines changed

2 files changed

+19
-22
lines changed

doc/source/faq.rst

-22
Original file line numberDiff line numberDiff line change
@@ -65,28 +65,6 @@ Monkey-patching existing methods is usually a bad idea in that respect.
6565
When used with proper care, however, it's a very useful tool to have.
6666

6767

68-
.. _ref-python-startup:
69-
70-
Setting startup options for pandas in python/ipython environment
71-
----------------------------------------------------------------
72-
73-
Using startup scripts for the python/ipython environment to import pandas and set options makes working with pandas more efficient. To do this, create a .py or .ipy script in the startup directory of the desired profile. An example where the startup folder is in a default ipython profile can be found at:
74-
75-
.. code-block:: python
76-
77-
$IPYTHONDIR/profile_default/startup
78-
79-
More information can be found in the `ipython profile documentation
80-
<http://ipython.org/ipython-doc/1/config/overview.html>`__. An example startup script for pandas is displayed below:
81-
82-
.. code-block:: python
83-
84-
import pandas as pd
85-
pd.set_option('display.max_rows', 999)
86-
pd.set_option('precision', 5)
87-
88-
For a list of options available for pandas, see the :ref:`pandas options documentation <options>`.
89-
9068
.. _ref-scikits-migration:
9169

9270
Migrating from scikits.timeseries to pandas >= 0.8.0

doc/source/options.rst

+19
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,25 @@ are restored automatically when you exit the `with` block:
124124
print(pd.get_option("display.max_columns"))
125125
126126
127+
Setting Startup Options in python/ipython Environment
128+
-----------------------------------------------------
129+
130+
Using startup scripts for the python/ipython environment to import pandas and set options makes working with pandas more efficient. To do this, create a .py or .ipy script in the startup directory of the desired profile. An example where the startup folder is in a default ipython profile can be found at:
131+
132+
.. code-block:: python
133+
134+
$IPYTHONDIR/profile_default/startup
135+
136+
More information can be found in the `ipython documentation
137+
<http://ipython.org/ipython-doc/stable/interactive/tutorial.html#startup-files>`__. An example startup script for pandas is displayed below:
138+
139+
.. code-block:: python
140+
141+
import pandas as pd
142+
pd.set_option('display.max_rows', 999)
143+
pd.set_option('precision', 5)
144+
145+
127146
Frequently Used Options
128147
-----------------------
129148
The following is a walkthrough of the more frequently used display options.

0 commit comments

Comments
 (0)