Skip to content

Instantly share code, notes, and snippets.

View onurmatik's full-sized avatar

Onur Mat onurmatik

View GitHub Profile
We can't make this file beautiful and searchable because it's too large.
,İl,İlçe,Sandık,RTE,KK,Mİ,SO,ToplamOy,EnÇokOy,Şüpheli
0,SAKARYA,ADAPAZARI,2015,0.5197568389057751,0.3860182370820669,0.00303951367781155,0.0911854103343465,329,RTE,False
1,SAKARYA,ADAPAZARI,2009,0.4084084084084084,0.4624624624624625,0.003003003003003003,0.12612612612612611,333,KK,False
2,SAKARYA,ADAPAZARI,2011,0.5161290322580645,0.3870967741935484,0.0,0.0967741935483871,341,RTE,False
3,SAKARYA,ADAPAZARI,2014,0.5325077399380805,0.34055727554179566,0.006191950464396285,0.12074303405572756,323,RTE,False
4,SAKARYA,ADAPAZARI,2007,0.4735202492211838,0.4735202492211838,0.0,0.0529595015576324,321,RTE,False
5,SAKARYA,ADAPAZARI,2013,0.521875,0.353125,0.003125,0.121875,320,RTE,False
6,SAKARYA,ADAPAZARI,2010,0.5416666666666666,0.35714285714285715,0.005952380952380952,0.09523809523809523,336,RTE,False
7,SAKARYA,ADAPAZARI,2001,0.5097402597402597,0.4318181818181818,0.0,0.05844155844155844,308,RTE,False
8,SAKARYA,ADAPAZARI,2016,0.45454545454545453,0.4696969696969697,0.0030303030303030303,0.07272727272727272,330,KK,False
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
We can't make this file beautiful and searchable because it's too large.
İl,İlçe,Sandık,RTE,KK,Mİ,SO
SAKARYA,ADAPAZARI,2015,171,127,1,30
SAKARYA,ADAPAZARI,2009,136,154,1,42
SAKARYA,ADAPAZARI,2011,176,132,0,33
SAKARYA,ADAPAZARI,2014,172,110,2,39
SAKARYA,ADAPAZARI,2007,152,152,0,17
SAKARYA,ADAPAZARI,2013,167,113,1,39
SAKARYA,ADAPAZARI,2010,182,120,2,32
SAKARYA,ADAPAZARI,2001,157,133,0,18
SAKARYA,ADAPAZARI,2016,150,155,1,24
<?xml version="1.0" encoding="utf-8"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="data">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="row">
<xs:complexType>
<xs:sequence>
<xs:element name="name" type="xs:string" />
<xs:element name="price" type="xs:string" />
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sayı İfade
586 ak parti
287 vatan
268 atatürk
263 allah
201 türk
139 türkiye
139 erdoğan
120 kadın kolları
118 rte
Sayı İfade
586 ak parti
287 vatan
268 atatürk
263 allah
201 türk
139 türkiye
139 erdoğan
120 kadın kolları
118 rte
# sort the number of retweets from the highest to the lowest
rt_counts.sort(reverse=True)
# the max number of tweets that has at least been retweeted that number of times
r_index = max(
[min(i + 1, rt_count) for i, rt_count in enumerate(rt_counts)]
) if rt_counts else 0
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.