diff --git a/doc/source/10min.rst b/doc/source/10min.rst index 85aafd6787f16..90198fa48bcb4 100644 --- a/doc/source/10min.rst +++ b/doc/source/10min.rst @@ -13,6 +13,7 @@ import pandas as pd np.set_printoptions(precision=4, suppress=True) options.display.mpl_style='default' + options.display.max_rows=15 #### portions of this were borrowed from the #### Pandas cheatsheet diff --git a/doc/source/basics.rst b/doc/source/basics.rst index 99cb0e8f67b09..a1724710e585e 100644 --- a/doc/source/basics.rst +++ b/doc/source/basics.rst @@ -9,6 +9,7 @@ randn = np.random.randn np.set_printoptions(precision=4, suppress=True) from pandas.compat import lrange + options.display.max_rows=15 ============================== Essential Basic Functionality diff --git a/doc/source/comparison_with_r.rst b/doc/source/comparison_with_r.rst index ef609aaa7d70c..c05ec01df6bcc 100644 --- a/doc/source/comparison_with_r.rst +++ b/doc/source/comparison_with_r.rst @@ -1,6 +1,12 @@ .. currentmodule:: pandas .. _compare_with_r: +.. ipython:: python + :suppress: + + from pandas import * + options.display.max_rows=15 + Comparison with R / R libraries ******************************* diff --git a/doc/source/computation.rst b/doc/source/computation.rst index 85c6b88d740da..66e0d457e33b6 100644 --- a/doc/source/computation.rst +++ b/doc/source/computation.rst @@ -13,6 +13,7 @@ import matplotlib.pyplot as plt plt.close('all') options.display.mpl_style='default' + options.display.max_rows=15 Computational tools =================== diff --git a/doc/source/cookbook.rst b/doc/source/cookbook.rst index 12891b030deb9..2bc76283bbedd 100644 --- a/doc/source/cookbook.rst +++ b/doc/source/cookbook.rst @@ -10,6 +10,7 @@ import os np.random.seed(123456) from pandas import * + options.display.max_rows=15 import pandas as pd randn = np.random.randn randint = np.random.randint diff --git a/doc/source/dsintro.rst b/doc/source/dsintro.rst index 828797deff5cf..3cc93d2f3e122 100644 --- a/doc/source/dsintro.rst +++ b/doc/source/dsintro.rst @@ -1,14 +1,6 @@ .. currentmodule:: pandas .. _dsintro: -************************ -Intro to Data Structures -************************ - -We'll start with a quick, non-comprehensive overview of the fundamental data -structures in pandas to get you started. The fundamental behavior about data -types, indexing, and axis labeling / alignment apply across all of the -objects. To get started, import numpy and load pandas into your namespace: .. ipython:: python :suppress: @@ -18,6 +10,17 @@ objects. To get started, import numpy and load pandas into your namespace: randn = np.random.randn np.set_printoptions(precision=4, suppress=True) set_option('display.precision', 4, 'display.max_columns', 8) + options.display.max_rows=15 + + +************************ +Intro to Data Structures +************************ + +We'll start with a quick, non-comprehensive overview of the fundamental data +structures in pandas to get you started. The fundamental behavior about data +types, indexing, and axis labeling / alignment apply across all of the +objects. To get started, import numpy and load pandas into your namespace: .. ipython:: python diff --git a/doc/source/enhancingperf.rst b/doc/source/enhancingperf.rst index 4e9e62a2f0e3e..2f31e1920ae0a 100644 --- a/doc/source/enhancingperf.rst +++ b/doc/source/enhancingperf.rst @@ -9,6 +9,7 @@ import csv from pandas import DataFrame import pandas as pd + pd.options.display.max_rows=15 import numpy as np np.random.seed(123456) diff --git a/doc/source/faq.rst b/doc/source/faq.rst index 21d581f12c53f..d64b799a865d1 100644 --- a/doc/source/faq.rst +++ b/doc/source/faq.rst @@ -12,6 +12,7 @@ Frequently Asked Questions (FAQ) import numpy as np np.random.seed(123456) from pandas import * + options.display.max_rows=15 randn = np.random.randn randint = np.random.randint np.set_printoptions(precision=4, suppress=True) diff --git a/doc/source/gotchas.rst b/doc/source/gotchas.rst index 1edd6fa1705ff..97699aa32890d 100644 --- a/doc/source/gotchas.rst +++ b/doc/source/gotchas.rst @@ -7,6 +7,7 @@ import os import numpy as np from pandas import * + options.display.max_rows=15 randn = np.random.randn np.set_printoptions(precision=4, suppress=True) from pandas.compat import lrange diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 705db807ddf8f..41539b5ce283e 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -7,6 +7,7 @@ import numpy as np np.random.seed(123456) from pandas import * + options.display.max_rows=15 randn = np.random.randn np.set_printoptions(precision=4, suppress=True) import matplotlib.pyplot as plt diff --git a/doc/source/indexing.rst b/doc/source/indexing.rst index b95c515831f55..8813e9d838d22 100644 --- a/doc/source/indexing.rst +++ b/doc/source/indexing.rst @@ -9,6 +9,7 @@ import random np.random.seed(123456) from pandas import * + options.display.max_rows=15 import pandas as pd randn = np.random.randn randint = np.random.randint diff --git a/doc/source/io.rst b/doc/source/io.rst index 0ed4c45bc3a86..0f34e94084878 100644 --- a/doc/source/io.rst +++ b/doc/source/io.rst @@ -20,6 +20,7 @@ plt.close('all') from pandas import * + options.display.max_rows=15 import pandas.util.testing as tm clipdf = DataFrame({'A':[1,2,3],'B':[4,5,6],'C':['p','q','r']}, index=['x','y','z']) diff --git a/doc/source/merging.rst b/doc/source/merging.rst index bc3bec4de654d..a68fc6e0739d5 100644 --- a/doc/source/merging.rst +++ b/doc/source/merging.rst @@ -8,6 +8,7 @@ np.random.seed(123456) from numpy import nan from pandas import * + options.display.max_rows=15 randn = np.random.randn np.set_printoptions(precision=4, suppress=True) diff --git a/doc/source/missing_data.rst b/doc/source/missing_data.rst index f953aeaa2a8a9..10053f61d8574 100644 --- a/doc/source/missing_data.rst +++ b/doc/source/missing_data.rst @@ -1,6 +1,12 @@ .. currentmodule:: pandas .. _missing_data: +.. ipython:: python + :suppress: + + from pandas import * + options.display.max_rows=15 + ************************* Working with missing data ************************* diff --git a/doc/source/r_interface.rst b/doc/source/r_interface.rst index 4f5c5a03a1be5..5af5685ed1f56 100644 --- a/doc/source/r_interface.rst +++ b/doc/source/r_interface.rst @@ -2,6 +2,13 @@ .. _rpy: +.. ipython:: python + :suppress: + + from pandas import * + options.display.max_rows=15 + + ****************** rpy2 / R interface ****************** diff --git a/doc/source/release.rst b/doc/source/release.rst index ccc34a4051508..793d1144531ec 100644 --- a/doc/source/release.rst +++ b/doc/source/release.rst @@ -20,6 +20,7 @@ plt.close('all') from pandas import * + options.display.max_rows=15 import pandas.util.testing as tm ************* diff --git a/doc/source/remote_data.rst b/doc/source/remote_data.rst index b950876738852..f0eb687174ff8 100644 --- a/doc/source/remote_data.rst +++ b/doc/source/remote_data.rst @@ -19,6 +19,7 @@ plt.close('all') from pandas import * + options.display.max_rows=15 import pandas.util.testing as tm ****************** diff --git a/doc/source/reshaping.rst b/doc/source/reshaping.rst index 7415963296f7e..37a87e7c3d8f6 100644 --- a/doc/source/reshaping.rst +++ b/doc/source/reshaping.rst @@ -7,6 +7,7 @@ import numpy as np np.random.seed(123456) from pandas import * + options.display.max_rows=15 from pandas.core.reshape import * import pandas.util.testing as tm randn = np.random.randn diff --git a/doc/source/rplot.rst b/doc/source/rplot.rst index 8ede1a41f8dd8..12ade83261fb7 100644 --- a/doc/source/rplot.rst +++ b/doc/source/rplot.rst @@ -7,6 +7,7 @@ import numpy as np np.random.seed(123456) from pandas import * + options.display.max_rows=15 import pandas.util.testing as tm randn = np.random.randn np.set_printoptions(precision=4, suppress=True) diff --git a/doc/source/sparse.rst b/doc/source/sparse.rst index 67f5c4f3403c1..391aae1cd9105 100644 --- a/doc/source/sparse.rst +++ b/doc/source/sparse.rst @@ -13,6 +13,7 @@ import matplotlib.pyplot as plt plt.close('all') options.display.mpl_style='default' + options.display.max_rows = 15 ********************** Sparse data structures diff --git a/doc/source/timeseries.rst b/doc/source/timeseries.rst index bfae9638f5377..b43a8fff496b6 100644 --- a/doc/source/timeseries.rst +++ b/doc/source/timeseries.rst @@ -11,6 +11,7 @@ randn = np.random.randn randint = np.random.randint np.set_printoptions(precision=4, suppress=True) + options.display.max_rows=15 from dateutil.relativedelta import relativedelta from pandas.tseries.api import * from pandas.tseries.offsets import * diff --git a/doc/source/visualization.rst b/doc/source/visualization.rst index 6e357d6d38e49..29f4cf2588c2f 100644 --- a/doc/source/visualization.rst +++ b/doc/source/visualization.rst @@ -13,6 +13,7 @@ import matplotlib.pyplot as plt plt.close('all') options.display.mpl_style = 'default' + options.display.max_rows = 15 from pandas.compat import lrange ************************ diff --git a/doc/source/whatsnew.rst b/doc/source/whatsnew.rst index 563847955877e..ad2af07d3d723 100644 --- a/doc/source/whatsnew.rst +++ b/doc/source/whatsnew.rst @@ -9,6 +9,7 @@ from pandas import * randn = np.random.randn np.set_printoptions(precision=4, suppress=True) + options.display.max_rows = 15 ********** What's New