From 4929ec324314dde39f3a326d32e919fb9d09a97e Mon Sep 17 00:00:00 2001 From: Alex L Date: Thu, 22 Feb 2018 12:03:11 +0800 Subject: [PATCH] update get_sample docstring --- fastai/structured.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fastai/structured.py b/fastai/structured.py index 2fae6e1b2..13fdcf6bd 100644 --- a/fastai/structured.py +++ b/fastai/structured.py @@ -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()