diff --git a/doc/source/conf.py b/doc/source/conf.py index 677ee6274b093..f222a228531ff 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -114,6 +114,8 @@ ): exclude_patterns.append(rel_fname) elif single_doc and rel_fname != pattern: + if "\\" in rel_fname: + rel_fname = rel_fname.replace("\\", "/") exclude_patterns.append(rel_fname) with open(os.path.join(source_path, "index.rst.template"), encoding="utf-8") as f: diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index 647b0f760f4d4..9c37f317a805e 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -50,7 +50,7 @@ We have a :class:`DataFrame` to which we want to apply a function row-wise. { "a": np.random.randn(1000), "b": np.random.randn(1000), - "N": np.random.randint(100, 1000, (1000)), + "N": np.random.randint(100, 1000, (1000), dtype="int64"), "x": "x", } ) @@ -83,7 +83,7 @@ using the `prun ipython magic function