Closed henrystokeley closed 8 years ago
Fix SettingWithCopyWarning given by thinkstats2.py by using df.loc[b, a] rather than chain indexing df[a][b] as documented at: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy
Thank you. I just pushed a commit with this change and an additional test.
Fix SettingWithCopyWarning given by thinkstats2.py by using df.loc[b, a] rather than chain indexing df[a][b] as documented at: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy