Skip to content

Commit

Permalink
Don't add redirects for single page, fix example
Browse files Browse the repository at this point in the history
  • Loading branch information
mroeschke committed Dec 8, 2023
1 parent 36adc0f commit 10da816
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions doc/make.py
Original file line number Diff line number Diff line change
Expand Up @@ -236,8 +236,9 @@ def html(self):
os.remove(zip_fname)

if ret_code == 0:
if self.single_doc_html is not None and not self.no_browser:
self._open_browser(self.single_doc_html)
if self.single_doc_html is not None:
if not self.no_browser:
self._open_browser(self.single_doc_html)
else:
self._add_redirects()
if self.whatsnew and not self.no_browser:
Expand Down
8 changes: 4 additions & 4 deletions pandas/core/window/rolling.py
Original file line number Diff line number Diff line change
Expand Up @@ -2814,10 +2814,10 @@ def cov(
DataFrame using the pairwise option.
>>> matrix = np.array([[51., 35.],
[49., 30.],
[47., 32.],
[46., 31.],
[50., 36.]])
... [49., 30.],
... [47., 32.],
... [46., 31.],
... [50., 36.]])
>>> np.corrcoef(matrix[:-1, 0], matrix[:-1, 1])
array([[1. , 0.6263001],
[0.6263001, 1. ]])
Expand Down

0 comments on commit 10da816

Please sign in to comment.