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````

In [7]:

table

``````
``````

Out[7]:

[{u'data': [0.0, 0.008], u'label': u'RNCInCLE'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'HillaryClinton'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'DivoDeJuarez'},
{u'data': [0.0, 0.016], u'label': u'NewYork'},
{u'data': [0.06153846153846154, 0.0], u'label': u'Obamacare'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'StopCommonCore'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'FAIL'},
{u'data': [0.7230769230769231, 0.010666666666666666],
u'label': u'DemsInPhilly'},
{u'data': [0.03076923076923077, 0.0026666666666666666],
u'label': u'DisarmHate'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Indiana'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'ElectionDay'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Statehood'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'RNCINCLE'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Utah4Trump'},
{u'data': [0.015384615384615385, 0.0], u'label': u'SallyRideDay'},
{u'data': [0.0, 0.05333333333333334], u'label': u'GOPDebate'},
{u'data': [0.015384615384615385, 0.0], u'label': u'UAW'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'GOPinCLE'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'veterans'},
{u'data': [0.1076923076923077, 0.0], u'label': u'WomanCard'},
{u'data': [0.015384615384615385, 0.0], u'label': u'SaveElephants'},
{u'data': [0.0, 0.050666666666666665], u'label': u'debatenight'},
{u'data': [0.27692307692307694, 0.20533333333333334], u'label': u'VoteTrump'},
{u'data': [0.015384615384615385, 0.072], u'label': u'GO'},
{u'data': [0.18461538461538463, 0.0], u'label': u'NBCNewsForum'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Enjoy'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'iVoted'},
{u'data': [0.015384615384615385, 0.0], u'label': u'GoodTrouble'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'CA4Trump'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Mahalo'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'JimmyFallon'},
{u'data': [0.015384615384615385, 0.0], u'label': u'JuntosSePuede'},
{u'data': [0.015384615384615385, 0.0], u'label': u'FirstInPOTUS'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'WeAreBernie'},
{u'data': [0.015384615384615385, 0.0], u'label': u'TitleIX'},
{u'data': [0.03076923076923077, 0.0], u'label': u'MSNBCTownhall'},
{u'data': [0.046153846153846156, 0.0], u'label': u'FightForFamilies'},
{u'data': [0.015384615384615385, 0.0], u'label': u'ALConvention2016'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'BikersForTrump'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Turkey'},
{u'data': [0.0, 0.005333333333333333], u'label': u'TrumpPence2016'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'VoterFraud'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'brexit'},
{u'data': [0.015384615384615385, 0.005333333333333333], u'label': u'Arizona'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Ford'},
{u'data': [0.0, 0.008], u'label': u'AZPrimary'},
{u'data': [0.0, 0.005333333333333333], u'label': u'Cruz'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'SB50'},
{u'data': [0.015384615384615385, 0.0], u'label': u'ThanksObama'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'NewDay'},
{u'data': [0.015384615384615385, 0.0], u'label': u'GoldenGlobe'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TrumpinEverett'},
{u'data': [0.38461538461538464, 0.088], u'label': u'MAGA'},
{u'data': [0.015384615384615385, 0.0], u'label': u'NVcaucus'},
{u'data': [0.0, 0.024], u'label': u'VoteTrumpSC'},
{u'data': [0.0, 0.04], u'label': u'IACaucus'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'JuanGabriel'},
{u'data': [0.015384615384615385, 0.0], u'label': u'LibrarianOfCongress'},
{u'data': [0.015384615384615385, 0.0], u'label': u'DemsinPHL'},
{u'data': [0.0, 0.034666666666666665], u'label': u'WIPrimary'},
{u'data': [0.0, 0.005333333333333333], u'label': u'MaryBrigidMcManamon'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'UtahPrimary'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'WattersWorld'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'VoteTrumpMA'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'BlackMenForBernie'},
{u'data': [0.015384615384615385, 0.0], u'label': u'HispanicHeritageMonth'},
{u'data': [0.0, 0.005333333333333333], u'label': u'VoteTrumpMI'},
{u'data': [0.015384615384615385, 0.0], u'label': u'HillaryOnCNN'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'CBNNews'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Enough'},
{u'data': [0.0, 0.005333333333333333], u'label': u'OrlandoUnited'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TRUMP2016'},
{u'data': [0.07692307692307693, 0.0], u'label': u'SheWon'},
{u'data': [0.06153846153846154, 0.005333333333333333],
u'label': u'PrimaryDay'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'MichaelBrown'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'WHD'},
{u'data': [0.0, 0.005333333333333333], u'label': u'UtahCaucus'},
{u'data': [0.0, 0.005333333333333333], u'label': u'NATO'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'ChangeAgents'},
{u'data': [0.0, 0.005333333333333333], u'label': u'TrumpWon'},
{u'data': [0.015384615384615385, 0.0], u'label': u'MDW'},
{u'data': [0.0, 0.005333333333333333], u'label': u'AlwaysTrump'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TeamUSA'},
{u'data': [0.0, 0.008], u'label': u'Orlando'},
{u'data': [0.015384615384615385, 0.0], u'label': u'SayHerName'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'goodtrouble'},
{u'data': [0.015384615384615385, 0.0], u'label': u'NYCPride'},
{u'data': [0.015384615384615385, 0.0], u'label': u'JohnRyder'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Bush'},
{u'data': [0.015384615384615385, 0.0026666666666666666],
u'label': u'smallbiz'},
{u'data': [0.015384615384615385, 0.0], u'label': u'UnderstandSlavery'},
{u'data': [0.0, 0.005333333333333333], u'label': u'DemsinPhilly'},
{u'data': [0.0, 0.008], u'label': u'UT'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'presidenttrump'},
{u'data': [0.015384615384615385, 0.010666666666666666], u'label': u'trump'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'imwithher'},
{u'data': [0.015384615384615385, 0.0], u'label': u'imwithyou'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TrumpNV'},
{u'data': [0.015384615384615385, 0.0], u'label': u'NotOneMore'},
{u'data': [0.015384615384615385, 0.0], u'label': u'BlackWomensEqualPay'},
{u'data': [0.015384615384615385, 0.0], u'label': u'CommanderInChiefForum'},
{u'data': [0.2, 0.016], u'label': u'ImWithHer'},
{u'data': [0.06153846153846154, 0.0026666666666666666], u'label': u'1'},
{u'data': [0.03076923076923077, 0.010666666666666666],
u'label': u'NeverHillary'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'StandTogether'},
{u'data': [0.015384615384615385, 0.0], u'label': u'womancard'},
{u'data': [0.015384615384615385, 0.0], u'label': u'WestVirginia'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Trump4Vets'},
{u'data': [0.015384615384615385, 0.0026666666666666666],
u'label': u'CAPrimary'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'gunviolence'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Mexico'},
{u'data': [0.0, 0.005333333333333333], u'label': u'SuperSaturday'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'ORPrimary'},
{u'data': [0.015384615384615385, 0.0], u'label': u'HarveyPitt'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'DEPrimary'},
{u'data': [0.06153846153846154, 0.0], u'label': u'WomensEqualityDay'},
{u'data': [0.046153846153846156, 0.0026666666666666666], u'label': u'SCOTUS'},
{u'data': [0.015384615384615385, 0.0], u'label': u'TerenceCrutcher'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'VoteTrumpIL'},
{u'data': [0.015384615384615385, 0.0026666666666666666],
u'label': u'Laurence'},
{u'data': [1.0, 0.4026666666666667], u'label': u'MakeAmericaGreatAgain'},
{u'data': [0.015384615384615385, 0.010666666666666666], u'label': u'LESM'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'DonaldTrump'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'WesternTuesday'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Greta'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'WashingtonDC'},
{u'data': [0.015384615384615385, 0.0], u'label': u'StandWithLouisiana'},
{u'data': [0.015384615384615385, 0.0], u'label': u'TurnUpToVote'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Brussels'},
{u'data': [0.03076923076923077, 0.021333333333333333],
u'label': u'INPrimary'},
{u'data': [0.015384615384615385, 0.0], u'label': u'MoreInCommon'},
{u'data': [0.015384615384615385, 0.0], u'label': u'ShesWithUs'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'primary'},
{u'data': [0.0, 0.010666666666666666], u'label': u'2A'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'makeamericagreatagain'},
{u'data': [0.09230769230769231, 0.0026666666666666666],
u'label': u'NationalVoterRegistrationDay'},
{u'data': [0.07692307692307693, 0.008], u'label': u'NoBillNoBreak'},
{u'data': [0.015384615384615385, 0.005333333333333333], u'label': u'TRUMP'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'OpeningCeremony'},
{u'data': [0.015384615384615385, 0.0], u'label': u'RogerStone'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'With_Cruz_you_lose'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Derp'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'slipping'},
{u'data': [0.015384615384615385, 0.0], u'label': u'GunViolence'},
{u'data': [0.015384615384615385, 0.0026666666666666666],
u'label': u'LaborDay'},
{u'data': [0.015384615384615385, 0.0], u'label': u'DeclareYourAmbition'},
{u'data': [0.046153846153846156, 0.0], u'label': u'DemsInPHL'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'WeWantTrump'},
{u'data': [0.015384615384615385, 0.0], u'label': u'MegynKellyPresents'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TrumpDallas'},
{u'data': [0.015384615384615385, 0.0], u'label': u'DemocraticSitIn'},
{u'data': [0.0, 0.008], u'label': u'trump2016'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'LaurenceTribe'},
{u'data': [0.015384615384615385, 0.0], u'label': u'PurpleHeartDay'},
{u'data': [0.0, 0.14933333333333335], u'label': u'RNCinCLE'},
{u'data': [0.0, 0.008], u'label': u'Clinton'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'MeetTheTrumps'},
{u'data': [0.13846153846153847, 0.005333333333333333], u'label': u'TBT'},
{u'data': [0.015384615384615385, 0.12533333333333332], u'label': u'Debate'},
{u'data': [0.03076923076923077, 0.0], u'label': u'SOTU'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'AmericanSamoa'},
{u'data': [0.015384615384615385, 0.0], u'label': u'USMC2016'},
{u'data': [0.015384615384615385, 0.0], u'label': u'YUGE'},
{u'data': [0.015384615384615385, 0.0], u'label': u'GPLFers'},
{u'data': [0.015384615384615385, 0.0], u'label': u'INDPrimary'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TrumpForPresident'},
{u'data': [0.015384615384615385, 0.0], u'label': u'WheresHillary'},
{u'data': [0.015384615384615385, 0.0], u'label': u'MorningJoe'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Elkhart'},
{u'data': [0.015384615384615385, 0.0], u'label': u'WORK'},
{u'data': [0.015384615384615385, 0.0], u'label': u'FlashbackFriday'},
{u'data': [0.0, 0.06133333333333333], u'label': u'TrumpPence16'},
{u'data': [0.015384615384615385, 0.0026666666666666666],
u'label': u'CitizensUnited'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TrumpMovement'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'EndCommonCore'},
{u'data': [0.03076923076923077, 0.0], u'label': u'VirWINia'},
{u'data': [0.015384615384615385, 0.0], u'label': u'IranDeal'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'NeverCruz'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'GIBill'},
{u'data': [0.046153846153846156, 0.0], u'label': u'StopGunViolence'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Teachers4Trump'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'FallonTonight'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'FeelTheBern'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'NeverForget'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'HillaryOnGMA'},
{u'data': [0.0, 0.005333333333333333], u'label': u'TedCruz'},
{u'data': [0.015384615384615385, 0.0], u'label': u'makersandtakers'},
{u'data': [0.015384615384615385, 0.0], u'label': u'StanleyCup'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'NaturalBorn'},
{u'data': [0.015384615384615385, 0.0], u'label': u'AmericaFIRST'},
{u'data': [0.0, 0.005333333333333333], u'label': u'sitin'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TrumpWaikiki'},
{u'data': [0.015384615384615385, 0.0026666666666666666],
u'label': u'StoptheHate'},
{u'data': [0.015384615384615385, 0.0], u'label': u'RepMikeKelly'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'NeilCavuto'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Hillary2016'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'VoteTrumpNC'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Frozen'},
{u'data': [0.03076923076923077, 0.0], u'label': u'RestoreTheVRA'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'GOPdebate'},
{u'data': [0.0, 0.018666666666666668], u'label': u'VoteTrumpNH'},
{u'data': [0.03076923076923077, 0.0], u'label': u'NPS100'},
{u'data': [0.0, 0.018666666666666668], u'label': u'VoteTrumpNV'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TheDonald'},
{u'data': [0.015384615384615385, 0.005333333333333333], u'label': u'Iowa'},
{u'data': [0.0, 0.008], u'label': u'VoteTrumpNY'},
{u'data': [0.0, 0.072], u'label': u'GOP'},
{u'data': [0.015384615384615385, 0.0], u'label': u'EarthDay'},
{u'data': [0.015384615384615385, 0.0026666666666666666], u'label': u'LSSC'},
{u'data': [0.015384615384615385, 0.0], u'label': u'WATCH'},
{u'data': [0.015384615384615385, 0.0], u'label': u'fairandbalancedmyass'},
{u'data': [0.015384615384615385, 0.0], u'label': u'KhizrKhan'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Wausau'},
{u'data': [0.015384615384615385, 0.0026666666666666666], u'label': u'Donald'},
{u'data': [0.015384615384615385, 0.048], u'label': u'SuperTuesday'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'CommonLaw'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'MyTeacherIsWeird'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Colbert'},
{u'data': [0.0, 0.008], u'label': u'WH'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'MaitnerStrong'},
{u'data': [0.046153846153846156, 0.016], u'label': u'NYPrimary'},
{u'data': [0.015384615384615385, 0.0], u'label': u'FNS'},
{u'data': [0.06153846153846154, 0.050666666666666665], u'label': u'debate'},
{u'data': [0.0, 0.005333333333333333], u'label': u'NoMoreSilence'},
{u'data': [0.046153846153846156, 0.0], u'label': u'NeverTrump'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'SuperBowlSunday'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'WHCD'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'enough'},
{u'data': [0.0, 0.008], u'label': u'RIP'},
{u'data': [0.015384615384615385, 0.0], u'label': u'voteTrump'},
{u'data': [0.0, 0.005333333333333333], u'label': u'PAPrimary'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'holdthefloor'},
{u'data': [0.015384615384615385, 0.0], u'label': u'election2016'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'LoneStarState'},
{u'data': [0.046153846153846156, 0.056], u'label': u'FITN'},
{u'data': [0.0, 0.016], u'label': u'NHPrimary'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Benghazi'},
{u'data': [0.015384615384615385, 0.016], u'label': u'SCPrimary'},
{u'data': [0.18461538461538463, 0.005333333333333333],
u'label': u'DemConvention'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Diwali'},
{u'data': [0.0, 0.016], u'label': u'NewYorkValues'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'NeverDems'},
{u'data': [0.015384615384615385, 0.0], u'label': u'YouthDay'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Caribbean'},
{u'data': [0.015384615384615385, 0.0], u'label': u'HillaryKaine2016'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Charleston9'},
{u'data': [0.0, 0.010666666666666666], u'label': u'Fox'},
{u'data': [0.07692307692307693, 0.0026666666666666666],
u'label': u'LoveTrumpsHate'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'BlacksForTrump'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Filibuster'},
{u'data': [0.015384615384615385, 0.0026666666666666666],
u'label': u'Wisconsin'},
{u'data': [0.015384615384615385, 0.0], u'label': u'NAACP107'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TRUMPDOG'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Mediafraud'},
{u'data': [0.015384615384615385, 0.0], u'label': u'RiggedSystem'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'EndGunViolence'},
{u'data': [0.015384615384615385, 0.0], u'label': u'InternationalNursesDay'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Jonas'},
{u'data': [0.015384615384615385, 0.005333333333333333],
u'label': u'MAKEAMERICAGREATAGAIN'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'ECONOMY'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TrumpSupporters'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Politician'},
{u'data': [0.046153846153846156, 0.0], u'label': u'MakeAmericaSafeAgain'},
{u'data': [0.015384615384615385, 0.0], u'label': u'LaudatoSi'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'NASCAR'},
{u'data': [0.015384615384615385, 0.0026666666666666666], u'label': u'LGBT'},
{u'data': [0.015384615384615385, 0.0], u'label': u'NetNeutrality'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TrumpIsWithYou'},
{u'data': [0.0, 0.005333333333333333], u'label': u'IowaCaucus'},
{u'data': [0.0, 0.16533333333333333], u'label': u'RNC'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'MattSchlapp'},
{u'data': [0.015384615384615385, 0.0], u'label': u'WOMEN4TRUMP'},
{u'data': [0.015384615384615385, 0.0], u'label': u'ThankAVet'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Srebrenica'},
{u'data': [0.015384615384615385, 0.0], u'label': u'MayDay'},
{u'data': [0.015384615384615385, 0.0], u'label': u'laurencetribe'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'MichaelMoore'},
{u'data': [0.0, 0.005333333333333333], u'label': u'LawandOrder'},
{u'data': [0.015384615384615385, 0.0], u'label': u'WIBackHer'},
{u'data': [0.015384615384615385, 0.0], u'label': u'CoastGuardDay'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Trump360'},
{u'data': [0.0, 0.824], u'label': u'Trump2016'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'VoteTrumpVT'},
{u'data': [0.015384615384615385, 0.0], u'label': u'ArmyBDay'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'KenLangone'},
{u'data': [0.015384615384615385, 0.0], u'label': u'NABJNAHJ16'},
{u'data': [0.0, 0.005333333333333333], u'label': u'ArizonaPrimary'},
{u'data': [0.046153846153846156, 0.005333333333333333], u'label': u'ICYMI'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'ROGERAILES'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'SecondAmendment'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Polls'},
{u'data': [0.015384615384615385, 0.0], u'label': u'extremevetting'},
{u'data': [0.0, 0.088], u'label': u'DebateNight'},
{u'data': [0.06153846153846154, 0.0], u'label': u'DemPlatform'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'2016'},
{u'data': [0.015384615384615385, 0.0], u'label': u'WISCONSIN'},
{u'data': [0.16923076923076924, 0.008], u'label': u'CrookedHillary'},
{u'data': [0.015384615384615385, 0.0], u'label': u'CincoDeMayo'},
{u'data': [0.015384615384615385, 0.0], u'label': u'polls'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Pulse'},
{u'data': [0.015384615384615385, 0.0], u'label': u'EastVillage'},
{u'data': [0.015384615384615385, 0.0], u'label': u'MothersDay'},
{u'data': [0.015384615384615385, 0.0026666666666666666],
u'label': u'SouthCarolina'},
{u'data': [0.015384615384615385, 0.0], u'label': u'UPUPUP'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'ImWithHernandez'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TPP'},
{u'data': [0.015384615384615385, 0.0], u'label': u'vaticanwalls'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Rubio'},
{u'data': [0.015384615384615385, 0.0], u'label': u'AIDSFreeGeneration'},
{u'data': [0.06153846153846154, 0.008], u'label': u'POTUS'},
{u'data': [0.0, 0.005333333333333333], u'label': u'VoteTrump2016'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'CruzFraud'},
{u'data': [0.015384615384615385, 0.0], u'label': u'MSPrimary'},
{u'data': [0.015384615384615385, 0.0], u'label': u'media'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'RTM2016'},
{u'data': [0.015384615384615385, 0.0], u'label': u'WeTrumpHate'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Wimbledon'},
{u'data': [0.015384615384615385, 0.0], u'label': u'ArmedForcesDay'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Trump4President'},
{u'data': [0.015384615384615385, 0.0], u'label': u'AIPAC2016'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'campaignfinance'},
{u'data': [0.03076923076923077, 0.0], u'label': u'WakeUpAmerica'},
{u'data': [0.3076923076923077, 0.10933333333333334],
u'label': u'AmericaFirst'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'DavidCameron'},
{u'data': [0.0, 0.010666666666666666], u'label': u'GOPConvention'},
{u'data': [0.03076923076923077, 0.0], u'label': u'RollCallVote'},
{u'data': [0.015384615384615385, 0.0], u'label': u'PhilandoCastile'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'CTPrimary'},
{u'data': [0.015384615384615385, 0.0], u'label': u'LittleMarco'},
{u'data': [0.07692307692307693, 0.008], u'label': u'CaucusForTrump'},
{u'data': [0.015384615384615385, 0.0],
u'label': u'LightweightSenatorMarcoRubio'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'taxplan'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Jobs'},
{u'data': [0.015384615384615385, 0.0], u'label': u'CommonCore'},
{u'data': [0.015384615384615385, 0.0], u'label': u'iRegistered'},
{u'data': [0.0, 0.005333333333333333], u'label': u'RIPrimary'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'DNCinPHL'},
{u'data': [0.0, 0.008], u'label': u'FoxNews'},
{u'data': [0.015384615384615385, 0.0], u'label': u'OnTheRecord'},
{u'data': [0.015384615384615385, 0.0], u'label': u'AmericaGreatAgain'},
{u'data': [0.0, 0.08533333333333333], u'label': u'TrumpTrain'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Decision2016'},
{u'data': [0.07692307692307693, 1.0], u'label': u'Trump'},
{u'data': [0.0, 0.005333333333333333], u'label': u'ClintonKaine'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'DefendtheSecond'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Prince'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TrumpLV'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'jenniferrubin'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'CripTheVote'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TheTonightShow'},
{u'data': [0.03076923076923077, 0.0026666666666666666],
u'label': u'ObamaCare'},
{u'data': [0.03076923076923077, 0.0], u'label': u'Imwithyou'},
{u'data': [0.27692307692307694, 0.08], u'label': u'ImWithYou'},
{u'data': [0.015384615384615385, 0.0], u'label': u'UNGA'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'EauClaire'},
{u'data': [0.015384615384615385, 0.0], u'label': u'dtmag'},
{u'data': [0.0, 0.005333333333333333], u'label': u'NHPolitics'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'SouthCarolinaPrimary'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'AsLongAsItTakes'},
{u'data': [0.03076923076923077, 0.0], u'label': u'ActOnClimate'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'BuildTheWall'},
{u'data': [0.0, 0.010666666666666666], u'label': u'BrexitVote'},
{u'data': [0.015384615384615385, 0.0], u'label': u'TeacherAppreciationDay'},
{u'data': [0.015384615384615385, 0.0], u'label': u'WorldRefugeeDay'},
{u'data': [0.015384615384615385, 0.0], u'label': u'MemorialDay'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'IAPolitics'},
{u'data': [0.0, 0.008], u'label': u'Hannity'},
{u'data': [0.015384615384615385, 0.010666666666666666], u'label': u'Brexit'},
{u'data': [0.015384615384615385, 0.0], u'label': u'sendDonaldtospace'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Racine'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'NewHampshire'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'ISIS'},
{u'data': [0.015384615384615385, 0.0], u'label': u'APAHM'},
{u'data': [0.015384615384615385, 0.0], u'label': u'HRC4PA'},
{u'data': [0.015384615384615385, 0.0], u'label': u'ugpride2016'},
{u'data': [0.015384615384615385, 0.0], u'label': u'Excellent'},
{u'data': [0.046153846153846156, 0.0026666666666666666],
u'label': u'TeamTrump'},
{u'data': [0.015384615384615385, 0.0026666666666666666], u'label': u'DNC'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Women4Ttump'},
{u'data': [0.03076923076923077, 0.0], u'label': u'DDay'},
{u'data': [0.015384615384615385, 0.0], u'label': u'NoLoyalty'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'TrumpCountry'},
{u'data': [0.015384615384615385, 0.0], u'label': u'60Minutes'},
{u'data': [0.015384615384615385, 0.005333333333333333], u'label': u'Ted'},
{u'data': [0.015384615384615385, 0.0026666666666666666],
u'label': u'LyingTed'},
{u'data': [0.0, 0.005333333333333333], u'label': u'UTCaucus'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'RNCwithBernie'},
{u'data': [0.015384615384615385, 0.0], u'label': u'OpioidAwarenessWeek'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'KansasCaucus'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'MothersoftheMovement'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'USA'},
{u'data': [0.0, 0.010666666666666666], u'label': u'TrumpYourself'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'MSM'},
{u'data': [0.015384615384615385, 0.0], u'label': u'HoustonFlood'},
{u'data': [0.0, 0.037333333333333336], u'label': u'Debates2016'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'WCS16'},
{u'data': [0.015384615384615385, 0.0], u'label': u'DACA'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Mormon'},
{u'data': [0.015384615384615385, 0.008], u'label': u'Utah'},
{u'data': [0.015384615384615385, 0.0], u'label': u'LAflood'},
{u'data': [0.015384615384615385, 0.0], u'label': u'HaileyPuckett'},
{u'data': [0.015384615384615385, 0.0], u'label': u'RosanellEaton'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'VoteTrumpWI'},
{u'data': [0.015384615384615385, 0.0], u'label': u'RobotRubio'},
{u'data': [0.015384615384615385, 0.0], u'label': u'KentuckyDerby'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Carrier'},
{u'data': [0.015384615384615385, 0.0], u'label': u'CNN'},
{u'data': [0.0, 0.010666666666666666], u'label': u'AZ'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'Rio2016'},
{u'data': [0.015384615384615385, 0.0], u'label': u'SmallBizWeek'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'MDPrimary'},
{u'data': [0.03076923076923077, 0.0], u'label': u'EstoyConElla'},
{u'data': [0.015384615384615385, 0.0], u'label': u'fixdemocracyfirst'},
{u'data': [0.015384615384615385, 0.0], u'label': u'MikePence'},
{u'data': [0.015384615384615385, 0.0], u'label': u'OHHillYes'},
{u'data': [0.0, 0.0026666666666666666], u'label': u'VoterRegistrationDay'},
{u'data': [0.09230769230769231, 0.0026666666666666666],
u'label': u'StrongerTogether'}]

``````
``````

In [13]:

clusters, centroids = kmeans(table, 3, 0.5, 5)

``````
``````

In [14]:

def inv_search(v, d):
for i in d:
if np.array_equal(v,i['data']):
print(i['label'])
return i['label']
print('None')
return None

cluster_with_labels = [[] for i in range(len(clusters))]

for i in range(len(clusters)):
for j in clusters[i]:
print('search for', j)
label = inv_search(j, table)
if not label is None:
cluster_with_labels[i].append({'data': j, 'label': label})
#print(cluster_with_labels)

``````
``````

('search for', array([ 0.72307692,  0.01066667]))
DemsInPhilly
('search for', array([ 0.38461538,  0.088     ]))
MAGA
('search for', array([ 1.        ,  0.40266667]))
MakeAmericaGreatAgain
('search for', array([ 0.   ,  0.824]))
Trump2016
('search for', array([ 0.07692308,  1.        ]))
Trump
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.   ,  0.016]))
NewYork
('search for', array([ 0.06153846,  0.        ]))
Obamacare
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.03076923,  0.00266667]))
DisarmHate
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.05333333]))
GOPDebate
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.10769231,  0.        ]))
WomanCard
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.05066667]))
debatenight
('search for', array([ 0.27692308,  0.20533333]))
VoteTrump
('search for', array([ 0.01538462,  0.072     ]))
GO
('search for', array([ 0.18461538,  0.        ]))
NBCNewsForum
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.04615385,  0.        ]))
FightForFamilies
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.00533333]))
Arizona
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.   ,  0.024]))
VoteTrumpSC
('search for', array([ 0.  ,  0.04]))
IACaucus
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.03466667]))
WIPrimary
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.07692308,  0.        ]))
SheWon
('search for', array([ 0.06153846,  0.00533333]))
PrimaryDay
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.01066667]))
trump
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.2  ,  0.016]))
ImWithHer
('search for', array([ 0.06153846,  0.00266667]))
1
('search for', array([ 0.03076923,  0.01066667]))
NeverHillary
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.06153846,  0.        ]))
Obamacare
('search for', array([ 0.04615385,  0.00266667]))
SCOTUS
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.01538462,  0.01066667]))
trump
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.03076923,  0.02133333]))
INPrimary
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.01066667]))
2A
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.09230769,  0.00266667]))
NationalVoterRegistrationDay
('search for', array([ 0.07692308,  0.008     ]))
NoBillNoBreak
('search for', array([ 0.01538462,  0.00533333]))
Arizona
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.04615385,  0.        ]))
FightForFamilies
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.14933333]))
RNCinCLE
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.13846154,  0.00533333]))
TBT
('search for', array([ 0.01538462,  0.12533333]))
Debate
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.06133333]))
TrumpPence16
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.04615385,  0.        ]))
FightForFamilies
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.01866667]))
VoteTrumpNH
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.        ,  0.01866667]))
VoteTrumpNH
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.00533333]))
Arizona
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.   ,  0.072]))
GOP
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.01538462,  0.048     ]))
SuperTuesday
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.04615385,  0.016     ]))
NYPrimary
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.06153846,  0.05066667]))
debate
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.04615385,  0.        ]))
FightForFamilies
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.04615385,  0.056     ]))
FITN
('search for', array([ 0.   ,  0.016]))
NewYork
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.016     ]))
SCPrimary
('search for', array([ 0.18461538,  0.00533333]))
DemConvention
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.   ,  0.016]))
NewYork
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.01066667]))
2A
('search for', array([ 0.07692308,  0.00266667]))
LoveTrumpsHate
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.00533333]))
Arizona
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.04615385,  0.        ]))
FightForFamilies
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.16533333]))
RNC
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.04615385,  0.00533333]))
ICYMI
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.   ,  0.088]))
DebateNight
('search for', array([ 0.06153846,  0.        ]))
Obamacare
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.16923077,  0.008     ]))
CrookedHillary
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.06153846,  0.008     ]))
POTUS
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.30769231,  0.10933333]))
AmericaFirst
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.01066667]))
2A
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.07692308,  0.008     ]))
NoBillNoBreak
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.01066667]))
2A
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.08533333]))
TrumpTrain
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.06153846,  0.        ]))
Obamacare
('search for', array([ 0.03076923,  0.00266667]))
DisarmHate
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.27692308,  0.08      ]))
ImWithYou
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.01066667]))
2A
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.   ,  0.008]))
RNCInCLE
('search for', array([ 0.01538462,  0.01066667]))
trump
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.04615385,  0.00266667]))
SCOTUS
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.00533333]))
Arizona
('search for', array([ 0.01538462,  0.00266667]))
smallbiz
('search for', array([ 0.        ,  0.00533333]))
TrumpPence2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.        ,  0.01066667]))
2A
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.03733333]))
Debates2016
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.008     ]))
Utah
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.01066667]))
2A
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.03076923,  0.        ]))
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.01538462,  0.        ]))
Indiana
('search for', array([ 0.        ,  0.00266667]))
HillaryClinton
('search for', array([ 0.09230769,  0.00266667]))
NationalVoterRegistrationDay

``````
``````

In [16]:

import matplotlib.pyplot as plt
fig = plt.figure()
color = ['r', 'g', 'b']
for i in range(len(cluster_with_labels)):
x = []
y = []
for j in cluster_with_labels[i]:
#print(j)
x.append(j['data'][0])
y.append(j['data'][1])
#print(x,y)
ax.scatter(x, y)
plt.show()

``````
``````

``````
``````

In [ ]:

``````