Skip to content

Commit d2fea66

Browse files
author
y-p
committed
Merge pull request #5953 from y-p/PR_doc_fixes
Misc fixes to doc build
2 parents c5429fb + 6f8fed6 commit d2fea66

File tree

4 files changed

+10
-3
lines changed

4 files changed

+10
-3
lines changed

doc/source/conf.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,13 @@
5252
]
5353

5454
# Add any paths that contain templates here, relative to this directory.
55-
templates_path = ['_templates']
55+
templates_path = ['../_templates']
5656

5757
# The suffix of source filenames.
5858
source_suffix = '.rst'
5959

6060
# The encoding of source files.
61-
# source_encoding = 'utf-8'
61+
source_encoding = 'utf-8'
6262

6363
# The master toctree document.
6464
master_doc = 'index'

doc/source/dsintro.rst

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
np.set_printoptions(precision=4, suppress=True)
1212
set_option('display.precision', 4, 'display.max_columns', 8)
1313
options.display.max_rows=15
14+
import pandas as pd
1415
1516
1617
************************
@@ -488,6 +489,12 @@ TimeSeries (which it will be automatically if the index contains datetime
488489
objects), and the DataFrame index also contains dates, the broadcasting will be
489490
column-wise:
490491

492+
.. ipython:: python
493+
:suppress:
494+
495+
import warnings
496+
warnings.filterwarnings("ignore",message='TimeSeries broadcasting',category=FutureWarning)
497+
491498
.. ipython:: python
492499
493500
index = date_range('1/1/2000', periods=8)

doc/source/faq.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ life easier is missing. In that case you have several options:
8181
For example, here is an example of adding an ``just_foo_cols()``
8282
method to the dataframe class:
8383

84-
.. ipython:: python
84+
::
8585

8686
import pandas as pd
8787
def just_foo_cols(self):

0 commit comments

Comments
 (0)