diff --git a/doc/source/user_guide/basics.rst b/doc/source/user_guide/basics.rst index 7335f1cb066ce..a8afb05bc5200 100644 --- a/doc/source/user_guide/basics.rst +++ b/doc/source/user_guide/basics.rst @@ -2128,7 +2128,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