From 1e7083b7385c0b353ee6351a16ee7c856fc7ad30 Mon Sep 17 00:00:00 2001 From: WANG Aiyong Date: Thu, 12 Sep 2019 20:51:15 +0800 Subject: [PATCH] Fix a typo in "computation.rst" in document. (#28400) There's `np.random.np.random` in /doc/source/user_guide/computation.rst, which I believe is a typo. But the weird thing is there's actually `np.random.np` in numpy (1.16.4), but not in numpy (1.17.2). That's maybe why the doc build passed before. While I'm trying to build the doc locally with numpy 1.17.2, it failed. --- doc/source/user_guide/computation.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/source/user_guide/computation.rst b/doc/source/user_guide/computation.rst index 4f44fcaab63d4..385db1a296d61 100644 --- a/doc/source/user_guide/computation.rst +++ b/doc/source/user_guide/computation.rst @@ -182,7 +182,7 @@ assigned the mean of the ranks (by default) for the group: .. ipython:: python - s = pd.Series(np.random.np.random.randn(5), index=list('abcde')) + s = pd.Series(np.random.randn(5), index=list('abcde')) s['d'] = s['b'] # so there's a tie s.rank() @@ -192,7 +192,7 @@ ranking. .. ipython:: python - df = pd.DataFrame(np.random.np.random.randn(10, 6)) + df = pd.DataFrame(np.random.randn(10, 6)) df[4] = df[2][:5] # some ties df df.rank(1)