Skip to content

Moved startup script information to options docs and fixed link #8418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 29, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions doc/source/faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,28 +65,6 @@ Monkey-patching existing methods is usually a bad idea in that respect.
When used with proper care, however, it's a very useful tool to have.


.. _ref-python-startup:

Setting startup options for pandas in python/ipython environment
----------------------------------------------------------------

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:

.. code-block:: python

$IPYTHONDIR/profile_default/startup

More information can be found in the `ipython profile documentation
<http://ipython.org/ipython-doc/1/config/overview.html>`__. An example startup script for pandas is displayed below:

.. code-block:: python

import pandas as pd
pd.set_option('display.max_rows', 999)
pd.set_option('precision', 5)

For a list of options available for pandas, see the :ref:`pandas options documentation <options>`.

.. _ref-scikits-migration:

Migrating from scikits.timeseries to pandas >= 0.8.0
Expand Down
19 changes: 19 additions & 0 deletions doc/source/options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,25 @@ are restored automatically when you exit the `with` block:
print(pd.get_option("display.max_columns"))


Setting Startup Options in python/ipython Environment
-----------------------------------------------------

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:

.. code-block:: python

$IPYTHONDIR/profile_default/startup

More information can be found in the `ipython documentation
<http://ipython.org/ipython-doc/stable/interactive/tutorial.html#startup-files>`__. An example startup script for pandas is displayed below:

.. code-block:: python

import pandas as pd
pd.set_option('display.max_rows', 999)
pd.set_option('precision', 5)


Frequently Used Options
-----------------------
The following is a walkthrough of the more frequently used display options.
Expand Down