Skip to content

Commit a347ecb

Browse files
committed
DOC/BUILD: Parallelize doc build
closes pandas-dev#15591 a couple of minutes faster with -j 2. fixes some deprecated use of pd.Term Author: Jeff Reback <[email protected]> Closes pandas-dev#15600 from jreback/docs and squashes the following commits: c19303d [Jeff Reback] DOC: parallel build for docs
1 parent 38a34be commit a347ecb

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

doc/make.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ def html():
197197
print(e)
198198
print("Failed to convert %s" % nb)
199199

200-
if os.system('sphinx-build -P -b html -d build/doctrees '
200+
if os.system('sphinx-build -j 2 -P -b html -d build/doctrees '
201201
'source build/html'):
202202
raise SystemExit("Building HTML failed.")
203203
try:
@@ -222,7 +222,7 @@ def latex():
222222
check_build()
223223
if sys.platform != 'win32':
224224
# LaTeX format.
225-
if os.system('sphinx-build -b latex -d build/doctrees '
225+
if os.system('sphinx-build -j 2 -b latex -d build/doctrees '
226226
'source build/latex'):
227227
raise SystemExit("Building LaTeX failed.")
228228
# Produce pdf.
@@ -245,7 +245,7 @@ def latex_forced():
245245
check_build()
246246
if sys.platform != 'win32':
247247
# LaTeX format.
248-
if os.system('sphinx-build -b latex -d build/doctrees '
248+
if os.system('sphinx-build -j 2 -b latex -d build/doctrees '
249249
'source build/latex'):
250250
raise SystemExit("Building LaTeX failed.")
251251
# Produce pdf.

doc/source/io.rst

+5-3
Original file line numberDiff line numberDiff line change
@@ -3758,7 +3758,7 @@ be data_columns
37583758
37593759
# on-disk operations
37603760
store.append('df_dc', df_dc, data_columns = ['B', 'C', 'string', 'string2'])
3761-
store.select('df_dc', [ pd.Term('B>0') ])
3761+
store.select('df_dc', where='B>0')
37623762
37633763
# getting creative
37643764
store.select('df_dc', 'B > 0 & C > 0 & string == foo')
@@ -4352,6 +4352,9 @@ HDFStore supports ``Panel4D`` storage.
43524352
.. ipython:: python
43534353
:okwarning:
43544354
4355+
wp = pd.Panel(randn(2, 5, 4), items=['Item1', 'Item2'],
4356+
major_axis=pd.date_range('1/1/2000', periods=5),
4357+
minor_axis=['A', 'B', 'C', 'D'])
43554358
p4d = pd.Panel4D({ 'l1' : wp })
43564359
p4d
43574360
store.append('p4d', p4d)
@@ -4368,8 +4371,7 @@ object). This cannot be changed after table creation.
43684371
:okwarning:
43694372
43704373
store.append('p4d2', p4d, axes=['labels', 'major_axis', 'minor_axis'])
4371-
store
4372-
store.select('p4d2', [ pd.Term('labels=l1'), pd.Term('items=Item1'), pd.Term('minor_axis=A_big_strings') ])
4374+
store.select('p4d2', where='labels=l1 and items=Item1 and minor_axis=A')
43734375
43744376
.. ipython:: python
43754377
:suppress:

0 commit comments

Comments
 (0)