Skip to content

Commit 1e7083b

Browse files
gepceljschendel
authored andcommitted
Fix a typo in "computation.rst" in document. (pandas-dev#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.
1 parent 0b7c2d5 commit 1e7083b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/source/user_guide/computation.rst

+2-2
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ assigned the mean of the ranks (by default) for the group:
182182

183183
.. ipython:: python
184184
185-
s = pd.Series(np.random.np.random.randn(5), index=list('abcde'))
185+
s = pd.Series(np.random.randn(5), index=list('abcde'))
186186
s['d'] = s['b'] # so there's a tie
187187
s.rank()
188188
@@ -192,7 +192,7 @@ ranking.
192192

193193
.. ipython:: python
194194
195-
df = pd.DataFrame(np.random.np.random.randn(10, 6))
195+
df = pd.DataFrame(np.random.randn(10, 6))
196196
df[4] = df[2][:5] # some ties
197197
df
198198
df.rank(1)

0 commit comments

Comments
 (0)