Skip to content

Commit

Permalink
Merge pull request fastai#169 from alwc/doc
Browse files Browse the repository at this point in the history
update get_sample docstring
  • Loading branch information
jph00 authored Feb 23, 2018
2 parents 2cf6a1e + 4929ec3 commit 193ab19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fastai/structured.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ def get_sample(df,n):
>>> get_sample(df, 2)
col1 col2
2 3 a
1 2 b
2 3 a
"""
idxs = sorted(np.random.permutation(len(df))[:n])
return df.iloc[idxs].copy()
Expand Down

0 comments on commit 193ab19

Please sign in to comment.