# 社群 [TOC] ## 主題 1. 以 ## 資料 ```python x = test['超過三萬元之收入'] got = test['得票數'] pa = test['得票率'] a = test['政黨捐贈收入'] b = test['人民團體捐贈收入'] c = test['匿名捐贈收入'] d = test['其他收入'] e = test['個人捐贈收入'] f = test['個人捐贈收入'] g = test['營利事業捐贈收入'] h = test['總支出'] for cur in range(len(x)): for temp in range(len(x)): if cur == temp: pass else: if a[cur] == a[temp] and b[cur] == b[temp] and c[cur] == c[temp] and d[cur] == d[temp] and e[cur] == e[temp] and f[cur] == f[temp] and g[cur] == g[temp] and h[cur] == h[temp]: print('收入',temp,cur) if got[cur] == got[temp]: print('得票',temp,cur) ``` >收入 201 19 得票 182 151 得票 151 182 收入 19 201 ```python for cur in range(len(x)): for temp in range(len(x)): if cur == temp: pass else: if a[cur] == a[temp] and b[cur] == b[temp] and c[cur] == c[temp] and d[cur] == d[temp] and e[cur] == e[temp] and f[cur] == f[temp] and g[cur] == g[temp]: print('收入',temp,cur) if got[cur] == got[temp]: print('得票',temp,cur) ``` 收入 161 0 收入 111 14(113 16 平原原住民 嘎礌‧武拜‧哈雅萬 23 804 無黨籍 0.84% 0 否 男 1974 0 6600 6600 100.00% 0 0.00% 0 0.00% 0 0.00% 0 0.00% 0 0.00% 200000 新北市第03選區 蘇卿彥 3 429 無黨籍 0.24% 0 否 男 1939 0 6600 6600 100.00% 0 0.00% 0 0.00% 0 0.00% 0 0.00% 0 0.00% 200020 收入 175 18(177 20) 收入 181 18 收入 201 19(203 21) 收入 14 111 得票 182 151(153) 新竹縣第01選區 林為洲 6 93495 中國國民黨 36.74% * 1 否 司法法制 男 1961 4 5885624 375000 6.37% 400000 6.80% 5000000 84.95% 110000 1.87% 0 0.00% 624 0.00% 5850000 7358828 臺中市第02選區 顏寬恒 8 93495 中國國民黨 46.65% * 1 是 交通 男 1977 39 27809014 8679780 31.21% 13349000 48.00% 5000000 17.98% 780000 2.80% 0 0.00% 234 0.00% 27571000 35298672 收入 0 161 收入 18 175 收入 181 175 收入 18 181 收入 175 181 得票 151 182 收入 19 201 收入 252 235 臺南市第03選區 鄧秀寶 14 5247 民國黨 2.51% 0 否 女 1960 0 500 500 100.00% 0 0.00% 0 0.00% 0 0.00% 0 0.00% 0 0.00% 960 臺北市第07選區 林文傑 2 1063 無黨籍 0.64% 0 否 男 1961 0 500 500 100.00% 0 0.00% 0 0.00% 0 0.00% 0 0.00% 0 0.00% 4200 收入 235 252 ```python for x in test['Name']: if '?' in x: print(x) ``` >孫博? ?玉芬 ?維良 找到?為 >萮 黃 龎
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up