DataCamp-Software-Engineering-for-Data-Scientists-in-Python

Please help me improving this package

it should be work as expected, but I suggest you pull some data from Twitter API

(datacmap_data_engineering) [email protected]:~/datacmap_data_engineering$ python text_analyzer_script.py 
[('RT', 66), ('Trump', 37), ('the', 25), ('for', 25), ('to', 20), ('of', 20), ('a', 17), ('is', 15), ('Donald', 11), ('in', 10), ('Cruz', 9), ('#Trump', 9), ('and', 9), ('@realDonaldTrump', 9), ('The', 8)]
[('#Trump', 9), ('#NeverTrump', 4), ('#SleazyDonald', 2), ('#LyinTrump', 2), ('#CruzCrew', 2)]
[('@realDonaldTrump', 9), ('@urfavandtrump:', 4), ('@ggreenwald:', 3), ('@SusanSarandon', 3), ('@trumpresearch:', 2)]
Counter({'#Trump': 9, '#NeverTrump': 4, '#SleazyDonald': 2, '#LyinTrump': 2, '#CruzCrew': 2, '#tcot': 2, '#PJNET': 2, '#HillYes': 2, '#ImWithHer': 2, '#RollHillary': 2, '#Donald': 2, '#Protest': 2, '#Milwaukee': 2, '#Town': 2, '#Hall': 2, '#Trump,': 2, '#Cruz,': 2, '#GOP': 2, '#cruzsexscandal': 1, '#Election2016': 1})
<text_analyzer.tweets.Tweets object at 0x7f3bbb359e80>
RT @Pjw20161951: NO KIDDING: #SleazyDonald just attacked Scott Walker for NOT RAISING TAXES in WI! #LyinTrump
#NeverTrump  #CruzCrew  https…
(datacmap_data_engineering) [email protected]:~/datacmap_data_engineering$ 

GitHub

View Github