diff --git a/ipynb/Chapter 1 - Mining Twitter.ipynb b/ipynb/Chapter 1 - Mining Twitter.ipynb index 19611fe..d26fdf6 100644 --- a/ipynb/Chapter 1 - Mining Twitter.ipynb +++ b/ipynb/Chapter 1 - Mining Twitter.ipynb @@ -399,7 +399,7 @@ "# Slice off the first 5 from the sorted results and display each item in the tuple\n", "\n", "pt = PrettyTable(field_names=['Count', 'Screen Name', 'Text'])\n", - "[ pt.add_row(row) for row in sorted(retweets, reverse=True)[:5] ]\n", + "[ pt.add_row(row) for row in sorted(set(retweets), reverse=True)[:5] ]\n", "pt.max_width['Text'] = 50\n", "pt.align= 'l'\n", "print pt"