%cd ..
C:\Users\Talha\Documents\WinPython3\projects\News-Commentary-Tweets-of-Elites
import pandas as pd
import numpy as np
import plotly.plotly as py
import plotly.tools as tls
from plotly.graph_objs import *
%matplotlib inline
import matplotlib.pyplot as plt
plt.style.use('ggplot')
us = pd.read_csv('data/US-headlines.csv',usecols=['newsdate','title','twcount'],parse_dates=[0])
us = us[~us.title.str.contains('The\s?Plazz')]
us = us.sort('twcount',ascending=False)
us.iloc[:50]
newsdate | twcount | title | |
---|---|---|---|
4922 | 2013-12-05 | 307 | Apartheid resistance leader Mandela has died |
4986 | 2013-11-28 | 270 | A day full of thanks, feasts and families |
7178 | 2013-02-24 | 227 | Academy Awards 2013: cheers and jeers |
4369 | 2014-01-28 | 199 | Obama promises a year of action for 2014 |
4714 | 2013-12-24 | 196 | Season’s tweetings: Tis time to gather ’round |
4302 | 2014-02-02 | 192 | Actor Philip Seymour Hoffman dead at 46 |
122 | 2014-12-31 | 181 | Celeb greetings wish the happiest of new years |
4660 | 2013-12-31 | 175 | Billions ring in the New Year around the world |
6439 | 2013-06-19 | 174 | James Gandolfini dies of heart attack in Italy |
2685 | 2014-06-10 | 174 | Tea Party’s Brat hands Cantor primary defeat |
562 | 2014-11-27 | 172 | Celebs share gratitude on Thanksgiving |
6863 | 2013-04-08 | 169 | Britain’s Iron Lady dies of stroke at 87 |
192 | 2014-12-25 | 165 | Season’s tweetings: It’s Christmas Day greetings |
4388 | 2014-01-26 | 162 | Macklemore, Lorde, Daft Punk sweep Grammys |
2844 | 2014-05-28 | 162 | Renowned poet, author Maya Angelou dies |
4567 | 2014-01-09 | 153 | NJ Gov. Christie claims ignorance, apologizes |
7250 | 2013-02-14 | 151 | Love and celebrity hawking on Valentine’s |
7114 | 2013-03-06 | 150 | Rand Paul leads epic filibuster on CIA nominee |
5211 | 2013-10-31 | 149 | Trick or tweet! Halloween is here |
4704 | 2013-12-25 | 146 | Celebs spread holiday cheer to one and all |
7410 | 2013-01-21 | 145 | “Our journey is not complete” |
6301 | 2013-07-04 | 142 | Celebs show their patriotic colors |
5258 | 2013-10-27 | 140 | Legendary rock pioneer dead at 71 |
4529 | 2014-01-13 | 139 | Hollywood’s hottest stars snag Globes |
3085 | 2014-05-11 | 138 | Americans mark 100 years of Mother’s Day |
5119 | 2013-11-11 | 135 | Remembering those who offered their lives |
5807 | 2013-08-31 | 131 | Obama delays Syria strike for Congress vote |
1540 | 2014-09-11 | 131 | US observes somber 9/11 anniversary |
7334 | 2013-02-01 | 131 | Old scores settled at Hagel hearing |
7067 | 2013-03-13 | 129 | A New World ‘first': Pope Francis |
6823 | 2013-04-15 | 128 | Explosions rock Boston Marathon, three dead |
5852 | 2013-08-26 | 126 | Miley Cyrus twerks her way to infamy |
1639 | 2014-09-04 | 126 | Celebs say adieu to she who burned them best |
5605 | 2013-09-22 | 126 | Emmys pay tribute to fallen actors |
7397 | 2013-01-23 | 124 | Hillary Clinton erupts over Benghazi |
2616 | 2014-06-15 | 124 | Tweeps celebrate Dad, joys of fatherhood |
5726 | 2013-09-10 | 123 | Obama: ‘exceptional’ US ‘doesn’t do pinpricks’ |
6652 | 2013-05-12 | 121 | Celebs tweet their love for their moms |
6028 | 2013-08-05 | 119 | Amazon founder buys Washington Post |
6229 | 2013-07-13 | 118 | Jury finds George Zimmerman not guilty |
891 | 2014-10-31 | 118 | Ready or not, it’s time to go trick-or-treating |
1928 | 2014-08-12 | 116 | Williams’ death shocks entertainment industry |
5789 | 2013-09-03 | 116 | Kerry makes case to Senate for Syria strike |
7154 | 2013-02-28 | 114 | Woodward ‘threatened’ by White House? |
5862 | 2013-08-25 | 113 | ‘N Sync reunion highlight of VMAs |
7140 | 2013-03-02 | 112 | Sequestration in effect, Obama presses Congress |
3361 | 2014-04-20 | 111 | Celebrity tweeps wish happy Easter to tw’orld |
7260 | 2013-02-13 | 111 | Rubio SOTU response drowned in ‘big gulp’ |
889 | 2014-10-31 | 111 | Celebs get suited up for Halloween festivities |
4810 | 2013-12-15 | 110 | Season’s Tweetings: A holiday countdown |
tr = pd.read_csv('data/TR-headlines.csv',usecols=['newsdate','title','twcount'],parse_dates=[0])
tr = tr.sort('twcount',ascending=False)
tr.iloc[60:100]
newsdate | twcount | title | |
---|---|---|---|
5788 | 2014-04-27 | 173 | Fenerbahçe 19′uncu kez şampiyon |
10990 | 2013-06-22 | 172 | Karanfilli buluşmaya polis müdahalesi |
9235 | 2013-11-18 | 171 | Nejat Uygur yaşamını yitirdi |
6431 | 2014-03-27 | 170 | “Suriye ile ilgili ses kaydı” iddiası |
11154 | 2013-06-09 | 170 | Gezi Parkı eylemlerinde ikinci haftasonu |
10034 | 2013-09-17 | 169 | Real facia |
9896 | 2013-09-30 | 168 | Paketten beklentiler farklı |
8541 | 2013-12-25 | 167 | İstifa eden Bayraktar: “Başbakan istifa etmeli” |
8737 | 2013-12-18 | 167 | “Büyük Rüşvet” Türkiye’yi sarstı |
5473 | 2014-05-13 | 166 | Kömür ocağında patlama: 300 madenci mahsur |
10338 | 2013-08-24 | 165 | Ahmet Hakan’a zor gününde büyük destek |
11266 | 2013-05-31 | 165 | Metro istasyonunda biber gazı |
11454 | 2013-05-11 | 164 | Türkiye ateş çemberinde |
8516 | 2013-12-26 | 164 | Savcı: “Soruşturma yapmam engellendi” |
637 | 2014-12-14 | 163 | Cemaat yayınlarına operasyon başladı |
125 | 2015-01-05 | 162 | Soruşturma Komisyonu: “Yüce Divan’a gerek yok” |
11136 | 2013-06-11 | 162 | Erdoğan: “Bundan sonra tahammül yok” |
10828 | 2013-07-07 | 162 | Kim bu satırlı saldırganlar? |
3967 | 2014-07-18 | 161 | İsrail Gazze’ye kara operasyonunu başlattı |
9517 | 2013-10-31 | 160 | Başörtülü milletvekilleri Meclis’te |
3153 | 2014-08-21 | 159 | Erdoğan: “Yeni Başbakan adayı Ahmet Davutoğlu” |
3371 | 2014-08-12 | 158 | Hollywood’un ünlü aktörü Robin Williams ölü bu... |
10643 | 2013-07-26 | 158 | İnançer’e öfke dinmiyor |
8879 | 2013-12-10 | 156 | Mustafa Balbay tahliye edildi |
6168 | 2014-04-08 | 155 | Kemal Kılıçdaroğlu’na Meclis’te yumruklu saldırı |
10464 | 2013-08-14 | 154 | Sisi’den şafak operasyonu: 1000 ölü |
11179 | 2013-06-06 | 153 | İstanbul’da sabaha kadar toplu taşıma |
11128 | 2013-06-11 | 153 | Dünya Taksim’den canlı yayın yaptı |
10840 | 2013-07-06 | 150 | Mısır’da ölenlerin sayısı 91′e yükseldi |
4671 | 2014-06-16 | 150 | Muhalefetin “çatı adayı” tartışma yarattı |
6795 | 2014-03-12 | 150 | Cenaze sonrası sert müdahale |
10629 | 2013-07-27 | 149 | Mısır’da bilanço ağırlaşıyor: 200 ölü |
11092 | 2013-06-14 | 149 | Twitter’da Başbakan’a soru yağmuru |
11206 | 2013-06-04 | 149 | Kim bu eylemciler; ne istiyorlar? |
1866 | 2014-10-18 | 148 | Sneijder 2 dakikada 2 golle Kanarya’yı yıktı |
11116 | 2013-06-12 | 148 | Topçu Kışlası için referandum sinyali |
7148 | 2014-02-24 | 147 | Başbakan’la ilgili yeni ses kaydı iddiası |
3722 | 2014-07-28 | 147 | İyi bayramlar Türkiye |
5468 | 2014-05-14 | 147 | Bilanço ağırlaşıyor: “Ölü sayısı 205′e yükseldi” |
3397 | 2014-08-10 | 146 | Erdoğan: “Seçimin kaybedeni yok” |