Skip to content

Commit db119eb

Browse files
fix documentation build error in basics.rst (#53398)
* fix documentation build error in basics.rst * remove need for seed and gen random np array from range (0,255)
1 parent d8ae9a7 commit db119eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/source/user_guide/basics.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -2128,7 +2128,7 @@ different numeric dtypes will **NOT** be combined. The following example will gi
21282128
{
21292129
"A": pd.Series(np.random.randn(8), dtype="float16"),
21302130
"B": pd.Series(np.random.randn(8)),
2131-
"C": pd.Series(np.array(np.random.randn(8), dtype="uint8")),
2131+
"C": pd.Series(np.random.randint(0, 255, size=8), dtype="uint8"), # [0,255] (range of uint8)
21322132
}
21332133
)
21342134
df2

0 commit comments

Comments
 (0)