From 9cc3ca255fddbd40b0f81ea2eb5e60bd99f50578 Mon Sep 17 00:00:00 2001 From: WANG Aiyong Date: Thu, 12 Sep 2019 14:23:15 +0800 Subject: [PATCH] Fix a typo in "computation.rst" in document. 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 cfce7c40c477f..4beac5e035efc 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)