From 4c75e4b251b6fbbd103c8c5959bf159724e0a7f0 Mon Sep 17 00:00:00 2001 From: Dominik Berger <41689534+DominikBerger01@users.noreply.github.com> Date: Tue, 30 May 2023 22:07:23 +0200 Subject: [PATCH 1/2] Backport PR #53398: fix documentation build error in basics.rst --- doc/source/user_guide/basics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 5c2f2410e688c..1746af4a03826 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -2144,7 +2144,7 @@ different numeric dtypes will **NOT** be combined. The following example will gi { "A": pd.Series(np.random.randn(8), dtype="float16"), "B": pd.Series(np.random.randn(8)), - "C": pd.Series(np.array(np.random.randn(8), dtype="uint8")), + "C": pd.Series(np.random.randint(0, 255, size=8), dtype="uint8"), # [0,255] (range of uint8) } ) df2 From 3cc76bda8d3b80f0ef133b9f4e9a9c61b33ade1f Mon Sep 17 00:00:00 2001 From: Matthew Roeschke <10647082+mroeschke@users.noreply.github.com> Date: Tue, 30 May 2023 13:48:29 -0700 Subject: [PATCH 2/2] Update doc/source/user_guide/basics.rst --- doc/source/user_guide/basics.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 1746af4a03826..82589444e6803 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -2144,7 +2144,7 @@ different numeric dtypes will **NOT** be combined. The following example will gi { "A": pd.Series(np.random.randn(8), dtype="float16"), "B": pd.Series(np.random.randn(8)), - "C": pd.Series(np.random.randint(0, 255, size=8), dtype="uint8"), # [0,255] (range of uint8) + "C": pd.Series(np.random.randint(0, 255, size=8), dtype="uint8"), } ) df2