From bba8ffe44f613e070e4118ee9d7ee6b7edd44585 Mon Sep 17 00:00:00 2001 From: TommyCP Date: Thu, 18 Feb 2016 13:29:00 -0800 Subject: [PATCH] Update groupby.rst Fixed typo (replaced tm with np.random as pd.util.testing is not present in this doc) so that the choice method at line 220 will work. @ellisonbg --- doc/source/groupby.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/source/groupby.rst b/doc/source/groupby.rst index 1d1dd59efff52..02d4a924a92fc 100644 --- a/doc/source/groupby.rst +++ b/doc/source/groupby.rst @@ -217,7 +217,7 @@ the length of the ``groups`` dict, so it is largely just a convenience: weight = np.random.normal(166, 20, size=n) height = np.random.normal(60, 10, size=n) time = pd.date_range('1/1/2000', periods=n) - gender = tm.choice(['male', 'female'], size=n) + gender = np.random.choice(['male', 'female'], size=n) df = pd.DataFrame({'height': height, 'weight': weight, 'gender': gender}, index=time)