This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
categories.py
181 lines (178 loc) · 5.2 KB
/
categories.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
'''Contains dicts for categorization of tags'''
regexPattern = ['PAYMENT.*',
'CITY OF .*',
'CANADIAN ACADEMY.*',
'CANADA WIDE PARKING',
'NEW YORK FRIES',
'ESSO',
'SHELL',
'THE HOME DEPOT',
'WAL-MART',
'BED BATH & BEYOND',
'THE FRESH TEA SHOP',
'EA \\*STAR WARS',
'THE WINE SHOP',
'WWW.NEWEGG.COM',
'Amazon.ca',
'407ETR',
"MCDONALD'S",
'COM PHO ASIA',
'R & P',
'THE PITA PIT',
'HK TRAVEL CENTRES',
'TPA.*',
'WESTJET',
'OSLA',
'AMERICAN ACADEMY OF AUDIO',
'TFR-TO',
'TD ATM W/D',
'CANADA RIT',
'SPL LOAN',
'OSA INS',
'CHQ#',
'MONTHLY ACCOUNT FEE',
'ACCT BAL REBATE',
'\\S+\\s\\S*']
categories = {'Bills': ['NETFLIX.COM ', 'TELUS MOBILITY', 'TELUS MOBLTY'],
'Business': ['CANADIAN ACADEMY OF AUDIOTORONTO',
'OSLA',
'AMERICAN ACADEMY OF AUDIO'],
'Cash': ['TD ATM W/D', 'NON-TD ATM'],
'Deposit': ['MOBILE DEPOSIT',
'CANADA RIT',
'GC 3160-DEPOSIT',
'ACCT BAL REBATE',
'COIN DEP',
'GC 2040-DEPOSIT',
'FRAUD OFFSETTING',
'IP214 TFR-FR'],
'Entertainment': ['MEADOWVALE THEATER', 'CINEPLEX 8030', 'FAMOUS PLAYER'],
'Fast food': ['TIM HORTONS',
'YUKI SUSHI',
'RAPIDO BURRITO',
"MCDONALD'S",
'TERIYAKI EXP',
'NEW YORK FRIES',
'STARBUCKS 04292',
'QUIZNOS #3527',
'THE PITA PIT',
'R & P',
'HK TRAVEL CENTRES',
'ONROUTE #01171',
'THE FRESH TEA SHOP',
'ALBALISA GOURMET',
'RED BULB',
'STARBUCKS #0429'],
'Fee': ['E-TRANSFER FEE', 'MONTHLY ACCOUNT FEE', 'OTHER BANK'],
'Fraud': ['EA *STAR WARS'],
'Gas': ['ESSO', 'SHELL', "WALEE'S ESSO"],
'Groceries': ['METRO #771',
'METRO #26',
'THE WINE SHOP',
'ZEHRS #54',
'BULK BARN',
'LCBO/RAO #0226'],
'Health': ['LORD DUFFERIN'],
'Other': ['TICKETKING ROYA'],
'Payment': ['CHQ#'],
'Personal': ['SHOPPERSDRUGMART0858 ', 'PARKERS CLEANERS'],
'Rent': ['RENT'],
'Restaurants': ['PICKLE BARREL',
'COM PHO ASIA',
'MILESTONES #5223',
'DAIRY QUEEN',
'BAGEL WORLD',
'SYMPOSIUM CAFE',
'CORA BREAKFAST',
"JACK ASTOR'S",
'MEXICAN FOOD',
'FIAZZA FRESH',
'BANGKOK THAI',
'TOPPERS PIZZA',
'3 GUYS',
'MI-NE SUSHI',
'ORA RESTAURANT',
'CORIANDER KITCHEN',
'SUSHI DEN'],
'Shopping': ['Amazon.ca',
'WAL-MART',
'PURDYS CHOCOLATIER',
'CHAPTERS 784',
'Amazon *Marketplce',
'BED BATH & BEYOND',
'SPORT CHEK',
'PAYPAL *AMMAGRECO',
'WWW.NEWEGG.COM',
'CDN TIRE',
'PANDORA UCM',
'BEST BUY',
'THE HOME DEPOT',
'ALTON GREEN',
'PAYPAL PTE'],
'Taxes': ['INTUIT CANADA'],
'Transfer': ['PAYMENT - THANK YOU', 'TRANSFER'],
'Transportation': ['MTO RUS-',
'CANADA WIDE PARKING',
'ORANGEVILLE HYUNDAI',
'CITY OF OTTAWA PARKING OTTAWA',
'407ETR',
'TPA "CP 171" TORONTO',
'SPL LOAN',
'OSA INS'],
'Travel': ['WESTJET'],
'Utilities': ['TSI INTERNET', 'EMAIL TFR']}
split = {'!split': ['Fast food',
'Gas',
'Transportation',
'Deposit',
'Taxes',
'Bills',
'PURDYS CHOCOLATIER',
'CHAPTERS 784',
'SPORT CHEK',
'Business',
'WWW.NEWEGG.COM',
'PANDORA UCM',
'3 GUYS',
'Personal',
'Fraud',
'Fee',
'CINEPLEX 8030',
'FAMOUS PLAYER',
'Cash',
'Other',
'Health',
'Transfer'],
'ask': ['PICKLE BARREL',
'Amazon.ca',
'WAL-MART',
'Amazon *Marketplce',
'BED BATH & BEYOND',
'MILESTONES #5223',
'DAIRY QUEEN',
'BAGEL WORLD',
'SYMPOSIUM CAFE',
'CORA BREAKFAST',
'CDN TIRE',
"JACK ASTOR'S",
'BEST BUY',
'MI-NE SUSHI',
'ORA RESTAURANT',
'WESTJET',
'THE HOME DEPOT',
'ALTON GREEN',
'PAYPAL PTE',
'CHQ#',
'PAYPAL *AMMAGRECO',
'MEXICAN FOOD',
'FIAZZA FRESH',
'CORIANDER KITCHEN'],
'skip': ['Restaurants', 'Entertainment', 'Shopping', 'Travel', 'Payment'],
'split': ['Groceries',
'Utilities',
'MEADOWVALE THEATER',
'COM PHO ASIA',
'BANGKOK THAI',
'TOPPERS PIZZA',
'SUSHI DEN',
'Rent']}