From 24d09f54e62c64bd05ea1cecfc2cc6902ac4a08a Mon Sep 17 00:00:00 2001 From: Irv Lustig Date: Sun, 22 Jun 2025 01:32:58 -0400 Subject: [PATCH 1/2] fix for building docs on Windows --- doc/source/conf.py | 2 ++ doc/source/user_guide/enhancingperf.rst | 10 +++++----- 2 files changed, 7 insertions(+), 5 deletions(-) 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..484474130fad6 100644 --- a/doc/source/user_guide/enhancingperf.rst +++ b/doc/source/user_guide/enhancingperf.rst @@ -83,7 +83,7 @@ using the `prun ipython magic function Date: Sun, 22 Jun 2025 11:22:24 -0400 Subject: [PATCH 2/2] remove E999 and put int64 in creation of df --- doc/source/user_guide/enhancingperf.rst | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/doc/source/user_guide/enhancingperf.rst b/doc/source/user_guide/enhancingperf.rst index 484474130fad6..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