alokkulkarni commited on
Commit
0236eff
1 Parent(s): a09aefd

Upload 3 files

Browse files
Files changed (3) hide show
  1. categories.json +20 -0
  2. transactions.csv +327 -0
  3. transactions.py +88 -0
categories.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "categories": [
3
+ "Fuel",
4
+ "Income",
5
+ "Credit_Card_Payment",
6
+ "Entertainment",
7
+ "Shopping",
8
+ "Rent",
9
+ "Subscriptions",
10
+ "Healthcare",
11
+ "Groceries",
12
+ "Cash_Withdrawal",
13
+ "Loan_Payment",
14
+ "Utilities",
15
+ "Automotive",
16
+ "Online_Shopping",
17
+ "Dining_Out",
18
+ "Miscellaneous"
19
+ ]
20
+ }
transactions.csv ADDED
@@ -0,0 +1,327 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ Account,Date,Amount,Description,Location,Category,
2
+ A123,01/01/2023, 50.00, Grocery Shopping, New York, Groceries,
3
+ B456,02/01/2023, 30.00, Gasoline Refill, Los Angeles, Fuel,
4
+ C789,03/01/2023, 100.00, Restaurant Dinner, Chicago, Dining Out,
5
+ A123,04/01/2023, 500.00, Paycheck Deposit, San Francisco, Income,
6
+ B456,05/01/2023, 60.00, Phone Bill Payment, San Francisco, Utilities,
7
+ C789,06/01/2023, 25.00, Coffee Shop - Coffee, Seattle, Dining Out,
8
+ A123,07/01/2023, 800.00, Rent Payment, New York, Rent,
9
+ B456,08/01/2023, 150.00, Online Shopping, Online, Shopping,
10
+ C789,09/01/2023, 45.00, Pharmacy Purchase, Boston, Healthcare,
11
+ A123,10/01/2023, 200.00, Mortgage Payment, Boston, Loan Payment,
12
+ B456,11/01/2023, 10.00, ATM Withdrawal, Los Angeles, Cash Withdrawal,
13
+ C789,12/01/2023, 70.00, Grocery Shopping, San Francisco, Groceries,
14
+ A123,13/01/2023, 20.00, Movie Tickets, Los Angeles, Entertainment,
15
+ B456,14/01/2023, 30.00, Gas Refill, Chicago, Fuel,
16
+ C789,15/01/2023, 15.00, Snack Purchase, San Francisco, Dining Out,
17
+ A123,16/01/2023, 60.00, Mobile Phone Bill Payment, New York, Utilities,
18
+ B456,17/01/2023, 45.00, Doctor's Visit, Los Angeles, Healthcare,
19
+ C789,18/01/2023, 120.00, Car Repair, Chicago, Automotive,
20
+ A123,19/01/2023, 25.00, Lunch at Cafe, San Francisco, Dining Out,
21
+ B456,20/01/2023, 40.00, Clothing Shopping, Los Angeles, Shopping,
22
+ C789,21/01/2023, 75.00, Gasoline Refill, New York, Fuel,
23
+ A123,22/01/2023, 150.00, Internet Bill Payment, San Francisco, Utilities,
24
+ B456,23/01/2023, 10.00, Snack Purchase, Chicago, Dining Out,
25
+ C789,24/01/2023, 30.00, Online Shopping, Online, Shopping,
26
+ A123,25/01/2023, 80.00, Gym Membership Renewal, Los Angeles, Subscriptions,
27
+ B456,26/01/2023, 20.00, Movie Tickets, New York, Entertainment,
28
+ C789,27/01/2023, 35.00, Pharmacy Purchase, San Francisco, Healthcare,
29
+ A123,28/01/2023, 45.00, Car Wash, Chicago, Automotive,
30
+ B456,29/01/2023, 60.00, Paycheck Deposit, Los Angeles, Income,
31
+ C789,30/01/2023, 40.00, Dinner at Italian Restaurant, New York, Dining Out,
32
+ A123,31/01/2023, 25.00, Coffee Shop - Morning Coffee, San Francisco, Dining Out,
33
+ B456,01/02/2023, 70.00, Grocery Shopping, Los Angeles, Groceries,
34
+ C789,02/02/2023, 15.00, ATM Withdrawal - $15, Chicago, Cash Withdrawal,
35
+ A123,03/02/2023, 120.00, Rent Payment, New York, Rent,
36
+ B456,04/02/2023, 90.00, Online Shopping, Online, Shopping,
37
+ C789,05/02/2023, 55.00, Gasoline Refill, San Francisco, Fuel,
38
+ A123,06/02/2023, 200.00, Mortgage Payment, Los Angeles, Loan Payment,
39
+ B456,07/02/2023, 25.00, Lunch at Local Cafe, New York, Dining Out,
40
+ C789,08/02/2023, 30.00, Online Gaming Subscription, Chicago, Subscriptions,
41
+ A123,09/02/2023, 35.00, Doctor's Visit, San Francisco, Healthcare,
42
+ B456,10/02/2023, 40.00, Utility Bill Payment, Los Angeles, Utilities,
43
+ C789,11/02/2023, 60.00, Mobile Phone Bill Payment, New York, Utilities,
44
+ A123,12/02/2023, 80.00, Gym Membership Renewal, San Francisco, Subscriptions,
45
+ B456,13/02/2023, 70.00, Grocery Shopping, Chicago, Groceries,
46
+ C789,14/02/2023, 25.00, Movie Theater Tickets, Los Angeles, Entertainment,
47
+ A123,15/02/2023, 45.00, Car Repair - Auto Shop, New York, Automotive,
48
+ B456,16/02/2023, 50.00, Credit Card Payment, San Francisco, Credit Card Payment,
49
+ C789,17/02/2023, 20.00, Coffee Shop - Morning Coffee, Chicago, Dining Out,
50
+ A123,18/02/2023, 30.00, Online Shopping - Electronics, Los Angeles, Online Shopping,
51
+ B456,19/02/2023, 150.00, Internet Bill Payment, New York, Utilities,
52
+ C789,20/02/2023, 15.00, Snack Purchase, San Francisco, Dining Out,
53
+ A123,21/02/2023, 10.00, ATM Withdrawal - $10, Chicago, Cash Withdrawal,
54
+ B456,22/02/2023, 25.00, Clothing Shopping, Los Angeles, Shopping,
55
+ C789,23/02/2023, 45.00, Pharmacy Purchase, New York, Healthcare,
56
+ A123,24/02/2023, 35.00, Car Wash, San Francisco, Automotive,
57
+ B456,25/02/2023, 60.00, Paycheck Deposit, Chicago, Income,
58
+ C789,26/02/2023, 40.00, Online Shopping, Online, Shopping,
59
+ A123,27/02/2023, 25.00, Lunch at Cafe, Los Angeles, Dining Out,
60
+ B456,28/02/2023, 30.00, Movie Tickets, New York, Entertainment,
61
+ A123,01/02/2023, 20.00, Gasoline Refill, Chicago, Fuel,
62
+ B456,02/02/2023, 15.00, Phone Bill Payment, Los Angeles, Utilities,
63
+ C789,03/02/2023, 100.00, Restaurant Dinner, San Francisco, Dining Out,
64
+ A123,04/02/2023, 30.00, Online Shopping, Online, Shopping,
65
+ B456,05/02/2023, 35.00, Coffee Shop - Morning Coffee, New York, Dining Out,
66
+ C789,06/02/2023, 60.00, Grocery Shopping, San Francisco, Groceries,
67
+ A123,07/02/2023, 80.00, Paycheck Deposit, Chicago, Income,
68
+ B456,08/02/2023, 45.00, Gym Membership Renewal, Los Angeles, Subscriptions,
69
+ C789,09/02/2023, 25.00, Snack Purchase, Boston, Dining Out,
70
+ A123,10/02/2023, 120.00, Rent Payment, Chicago, Rent,
71
+ B456,11/02/2023, 30.00, Online Gaming Subscription, Los Angeles, Subscriptions,
72
+ C789,12/02/2023, 45.00, Doctor's Visit, New York, Healthcare,
73
+ A123,13/02/2023, 70.00, Grocery Shopping, San Francisco, Groceries,
74
+ B456,14/02/2023, 15.00, ATM Withdrawal - $15, Chicago, Cash Withdrawal,
75
+ C789,15/02/2023, 150.00, Mortgage Payment, Los Angeles, Loan Payment,
76
+ A123,16/02/2023, 40.00, Utility Bill Payment, New York, Utilities,
77
+ B456,17/02/2023, 35.00, Car Repair - Auto Shop, San Francisco, Automotive,
78
+ C789,18/02/2023, 30.00, Coffee Shop - Morning Coffee, Boston, Dining Out,
79
+ A123,19/02/2023, 20.00, Online Shopping - Electronics, Chicago, Online Shopping,
80
+ B456,20/02/2023, 10.00, Snack Purchase, Los Angeles, Dining Out,
81
+ C789,21/02/2023, 60.00, Paycheck Deposit, New York, Income,
82
+ A123,22/02/2023, 50.00, Credit Card Payment, San Francisco, Credit Card Payment,
83
+ B456,23/02/2023, 25.00, Movie Theater Tickets, Chicago, Entertainment,
84
+ C789,24/02/2023, 20.00, Car Wash, Los Angeles, Automotive,
85
+ A123,25/02/2023, 40.00, Online Shopping, Online, Shopping,
86
+ B456,26/02/2023, 70.00, Grocery Shopping, New York, Groceries,
87
+ C789,27/02/2023, 60.00, Gym Membership Renewal, San Francisco, Subscriptions,
88
+ A123,28/02/2023, 15.00, Dining Out - Sushi, Boston, Dining Out,
89
+ B456,01/03/2023, 120.00, Rent Payment, Chicago, Rent,
90
+ C789,02/03/2023, 30.00, Online Gaming Subscription, Los Angeles, Subscriptions,
91
+ A123,03/03/2023, 45.00, Doctor's Visit, San Francisco, Healthcare,
92
+ B456,04/03/2023, 70.00, Grocery Shopping, New York, Groceries,
93
+ C789,05/03/2023, 15.00, ATM Withdrawal - $15, Chicago, Cash Withdrawal,
94
+ A123,06/03/2023, 150.00, Mortgage Payment, Los Angeles, Loan Payment,
95
+ B456,07/03/2023, 40.00, Utility Bill Payment, New York, Utilities,
96
+ C789,08/03/2023, 35.00, Car Repair - Auto Shop, San Francisco, Automotive,
97
+ A123,09/03/2023, 30.00, Coffee Shop - Morning Coffee, Boston, Dining Out,
98
+ B456,10/03/2023, 20.00, Online Shopping - Electronics, Chicago, Online Shopping,
99
+ C789,11/03/2023, 10.00, Snack Purchase, Los Angeles, Dining Out,
100
+ A123,12/03/2023, 60.00, Paycheck Deposit, New York, Income,
101
+ B456,13/03/2023, 50.00, Credit Card Payment, San Francisco, Credit Card Payment,
102
+ C789,14/03/2023, 25.00, Movie Theater Tickets, Chicago, Entertainment,
103
+ A123,15/03/2023, 20.00, Car Wash, Los Angeles, Automotive,
104
+ B456,16/03/2023, 40.00, Online Shopping, Online, Shopping,
105
+ C789,17/03/2023, 60.00, Gym Membership Renewal, San Francisco, Subscriptions,
106
+ A123,18/03/2023, 15.00, Dining Out - Italian Restaurant, Boston, Dining Out,
107
+ B456,19/03/2023, 120.00, Rent Payment, Chicago, Rent,
108
+ C789,20/03/2023, 30.00, Online Gaming Subscription, Los Angeles, Subscriptions,
109
+ A123,21/03/2023, 45.00, Doctor's Visit, San Francisco, Healthcare,
110
+ B456,22/03/2023, 70.00, Grocery Shopping, New York, Groceries,
111
+ C789,23/03/2023, 15.00, ATM Withdrawal - $15, Chicago, Cash Withdrawal,
112
+ A123,24/03/2023, 150.00, Mortgage Payment, Los Angeles, Loan Payment,
113
+ B456,25/03/2023, 40.00, Utility Bill Payment, New York, Utilities,
114
+ C789,26/03/2023, 35.00, Car Repair - Auto Shop, San Francisco, Automotive,
115
+ B456,27/03/2023, 30.00, Coffee Shop - Morning Coffee, Boston, Dining Out,
116
+ C789,28/03/2023, 20.00, Online Shopping - Electronics, Chicago, Online Shopping,
117
+ A123,29/03/2023, 10.00, Snack Purchase, Los Angeles, Dining Out,
118
+ B456,30/03/2023, 60.00, Paycheck Deposit, New York, Income,
119
+ C789,31/03/2023, 50.00, Credit Card Payment, San Francisco, Credit Card Payment,
120
+ A123,01/04/2023, 25.00, Movie Theater Tickets, Chicago, Entertainment,
121
+ B456,02/04/2023, 20.00, Car Wash, Los Angeles, Automotive,
122
+ C789,03/04/2023, 40.00, Online Shopping, Online, Shopping,
123
+ A123,04/04/2023, 60.00, Gym Membership Renewal, San Francisco, Subscriptions,
124
+ B456,05/04/2023, 15.00, Dining Out - Japanese Restaurant, Boston, Dining Out,
125
+ C789,06/04/2023, 120.00, Rent Payment, Chicago, Rent,
126
+ A123,07/04/2023, 30.00, Online Gaming Subscription, Los Angeles, Subscriptions,
127
+ B456,08/04/2023, 45.00, Doctor's Visit, New York, Healthcare,
128
+ C789,09/04/2023, 70.00, Grocery Shopping, San Francisco, Groceries,
129
+ A123,10/04/2023, 15.00, ATM Withdrawal - $15, Chicago, Cash Withdrawal,
130
+ B456,11/04/2023, 150.00, Mortgage Payment, Los Angeles, Loan Payment,
131
+ C789,12/04/2023, 40.00, Utility Bill Payment, New York, Utilities,
132
+ A123,13/04/2023, 35.00, Car Repair - Auto Shop, San Francisco, Automotive,
133
+ B456,14/04/2023, 30.00, Coffee Shop - Morning Coffee, Boston, Dining Out,
134
+ C789,15/04/2023, 20.00, Online Shopping - Electronics, Chicago, Online Shopping,
135
+ A123,16/04/2023, 10.00, Snack Purchase, Los Angeles, Dining Out,
136
+ B456,17/04/2023, 60.00, Paycheck Deposit, New York, Income,
137
+ C789,18/04/2023, 50.00, Credit Card Payment, San Francisco, Credit Card Payment,
138
+ A123,19/04/2023, 25.00, Movie Theater Tickets, Chicago, Entertainment,
139
+ B456,20/04/2023, 20.00, Car Wash, Los Angeles, Automotive,
140
+ C789,21/04/2023, 40.00, Online Shopping, Online, Shopping,
141
+ A123,22/04/2023, 60.00, Gym Membership Renewal, San Francisco, Subscriptions,
142
+ B456,23/04/2023, 15.00, Dining Out - Mexican Restaurant, Boston, Dining Out,
143
+ C789,24/04/2023, 120.00, Rent Payment, Chicago, Rent,
144
+ A123,25/04/2023, 30.00, Online Gaming Subscription, Los Angeles, Subscriptions,
145
+ B456,26/04/2023, 45.00, Doctor's Visit, New York, Healthcare,
146
+ C789,27/04/2023, 70.00, Grocery Shopping, San Francisco, Groceries,
147
+ A123,28/04/2023, 15.00, ATM Withdrawal - $15, Chicago, Cash Withdrawal,
148
+ B456,29/04/2023, 150.00, Mortgage Payment, Los Angeles, Loan Payment,
149
+ C789,30/04/2023, 40.00, Utility Bill Payment, New York, Utilities,
150
+ A123,01/05/2023, 35.00, Car Repair - Auto Shop, San Francisco, Automotive,
151
+ B456,02/05/2023, 30.00, Coffee Shop - Morning Coffee, Boston, Dining Out,
152
+ C789,03/05/2023, 20.00, Online Shopping - Electronics, Chicago, Online Shopping,
153
+ A123,04/05/2023, 10.00, Snack Purchase, Los Angeles, Dining Out,
154
+ B456,05/05/2023, 60.00, Paycheck Deposit, New York, Income,
155
+ C789,06/05/2023, 50.00, Credit Card Payment, San Francisco, Credit Card Payment,
156
+ A123,07/05/2023, 25.00, Movie Theater Tickets, Chicago, Entertainment,
157
+ B456,08/05/2023, 20.00, Car Wash, Los Angeles, Automotive,
158
+ C789,09/05/2023, 40.00, Online Shopping, Online, Shopping,
159
+ A123,10/05/2023, 60.00, Gym Membership Renewal, San Francisco, Subscriptions,
160
+ B456,11/05/2023, 15.00, Dining Out - Indian Restaurant, Boston, Dining Out,
161
+ C789,12/05/2023, 120.00, Rent Payment, Chicago, Rent,
162
+ A123,13/05/2023, 30.00, Online Gaming Subscription, Los Angeles, Subscriptions,
163
+ B456,14/05/2023, 45.00, Doctor's Visit, New York, Healthcare,
164
+ C789,15/05/2023, 70.00, Grocery Shopping, San Francisco, Groceries,
165
+ A123,16/05/2023, 15.00, ATM Withdrawal - $15, Chicago, Cash Withdrawal,
166
+ A123,18/05/2023, 40.00, Point of Sale Shopping, Los Angeles, Shopping,
167
+ B456,19/05/2023, 20.00, Coffee Shop - Morning Coffee, Boston, Dining Out,
168
+ C789,20/05/2023, 10.00, Snack Purchase, Chicago, Dining Out,
169
+ A123,21/05/2023, 60.00, Paycheck Deposit, San Francisco, Income,
170
+ B456,22/05/2023, 50.00, Credit Card Payment, New York, Credit Card Payment,
171
+ C789,23/05/2023, 25.00, Movie Theater Tickets, Los Angeles, Entertainment,
172
+ A123,24/05/2023, 20.00, Car Wash, Chicago, Automotive,
173
+ B456,25/05/2023, 40.00, Online Shopping, Online, Shopping,
174
+ C789,26/05/2023, 60.00, Gym Membership Renewal, San Francisco, Subscriptions,
175
+ A123,27/05/2023, 15.00, Dining Out - Thai Restaurant, Boston, Dining Out,
176
+ B456,28/05/2023, 120.00, Rent Payment, Chicago, Rent,
177
+ C789,29/05/2023, 30.00, Online Gaming Subscription, New York, Subscriptions,
178
+ A123,30/05/2023, 45.00, Doctor's Visit, Los Angeles, Healthcare,
179
+ B456,31/05/2023, 70.00, Grocery Shopping, San Francisco, Groceries,
180
+ A123,01/06/2023, 15.00, ATM Withdrawal - $15, Chicago, Cash Withdrawal,
181
+ B456,02/06/2023, 150.00, Mortgage Payment, Los Angeles, Loan Payment,
182
+ C789,03/06/2023, 40.00, Utility Bill Payment, Boston, Utilities,
183
+ A123,04/06/2023, 35.00, Car Repair - Auto Shop, San Francisco, Automotive,
184
+ B456,05/06/2023, 30.00, Coffee Shop - Morning Coffee, New York, Dining Out,
185
+ C789,06/06/2023, 20.00, Online Shopping - Electronics, Los Angeles, Online Shopping,
186
+ A123,07/06/2023, 10.00, Snack Purchase, Chicago, Dining Out,
187
+ B456,08/06/2023, 60.00, Paycheck Deposit, San Francisco, Income,
188
+ C789,09/06/2023, 50.00, Credit Card Payment, Boston, Credit Card Payment,
189
+ A123,10/06/2023, 25.00, Movie Theater Tickets, Chicago, Entertainment,
190
+ B456,11/06/2023, 20.00, Car Wash, Los Angeles, Automotive,
191
+ C789,12/06/2023, 40.00, Online Shopping, Online, Shopping,
192
+ A123,13/06/2023, 60.00, Gym Membership Renewal, San Francisco, Subscriptions,
193
+ B456,14/06/2023, 15.00, Dining Out - Mexican Restaurant, New York, Dining Out,
194
+ C789,15/06/2023, 120.00, Rent Payment, Los Angeles, Rent,
195
+ A123,16/06/2023, 30.00, Online Gaming Subscription, Boston, Subscriptions,
196
+ B456,17/06/2023, 45.00, Doctor's Visit, San Francisco, Healthcare,
197
+ C789,18/06/2023, 70.00, Grocery Shopping, Chicago, Groceries,
198
+ A123,19/06/2023, 15.00, ATM Withdrawal - $15, Los Angeles, Cash Withdrawal,
199
+ B456,20/06/2023, 150.00, Mortgage Payment, New York, Loan Payment,
200
+ C789,21/06/2023, 40.00, Utility Bill Payment, San Francisco, Utilities,
201
+ A123,22/06/2023, 35.00, Car Repair - Auto Shop, Chicago, Automotive,
202
+ B456,23/06/2023, 30.00, Coffee Shop - Morning Coffee, Los Angeles, Dining Out,
203
+ C789,24/06/2023, 20.00, Online Shopping - Electronics, Boston, Online Shopping,
204
+ A123,25/06/2023, 10.00, Snack Purchase, San Francisco, Dining Out,
205
+ B456,26/06/2023, 60.00, Paycheck Deposit, Chicago, Income,
206
+ C789,27/06/2023, 50.00, Credit Card Payment, Los Angeles, Credit Card Payment,
207
+ A123,28/06/2023, 25.00, Movie Theater Tickets, New York, Entertainment,
208
+ B456,29/06/2023, 20.00, Car Wash, San Francisco, Automotive,
209
+ C789,30/06/2023, 40.00, Online Shopping, Online, Shopping,
210
+ A123,01/07/2023, 60.00, Gym Membership Renewal, Boston, Subscriptions,
211
+ B456,02/07/2023, 15.00, Dining Out - Italian Restaurant, Chicago, Dining Out,
212
+ C789,03/07/2023, 120.00, Rent Payment, Los Angeles, Rent,
213
+ A123,04/07/2023, 30.00, Online Gaming Subscription, San Francisco, Subscriptions,
214
+ B456,05/07/2023, 45.00, Doctor's Visit, New York, Healthcare,
215
+ C789,06/07/2023, 70.00, Grocery Shopping, Chicago, Groceries,
216
+ A123,07/07/2023, 2,500.00, Salary Credit, Boston, Income
217
+ B456,08/07/2023, 40.00, Point of Sale Shopping, Chicago, Shopping,
218
+ C789,09/07/2023, 20.00, Coffee Shop - Morning Coffee, Los Angeles, Dining Out,
219
+ A123,10/07/2023, 10.00, Snack Purchase, San Francisco, Dining Out,
220
+ B456,11/07/2023, 60.00, Paycheck Deposit, New York, Income,
221
+ C789,12/07/2023, 50.00, Credit Card Payment, Boston, Credit Card Payment,
222
+ A123,13/07/2023, 25.00, Movie Theater Tickets, Chicago, Entertainment,
223
+ B456,14/07/2023, 20.00, Car Wash, Los Angeles, Automotive,
224
+ C789,15/07/2023, 40.00, Online Shopping, Online, Shopping,
225
+ A123,16/07/2023, 60.00, Gym Membership Renewal, San Francisco, Subscriptions,
226
+ B456,17/07/2023, 15.00, Dining Out - Sushi Restaurant, Boston, Dining Out,
227
+ C789,18/07/2023, 120.00, Rent Payment, Chicago, Rent,
228
+ A123,19/07/2023, 30.00, Online Gaming Subscription, Los Angeles, Subscriptions,
229
+ B456,20/07/2023, 45.00, Doctor's Visit, New York, Healthcare,
230
+ C789,21/07/2023, 70.00, Grocery Shopping, San Francisco, Groceries,
231
+ A123,22/07/2023, 15.00, ATM Withdrawal - $15, Boston, Cash Withdrawal,
232
+ B456,23/07/2023, 150.00, Mortgage Payment, Chicago, Loan Payment,
233
+ C789,24/07/2023, 40.00, Utility Bill Payment, Los Angeles, Utilities,
234
+ A123,25/07/2023, 35.00, Car Repair - Auto Shop, San Francisco, Automotive,
235
+ B456,26/07/2023, 30.00, Coffee Shop - Morning Coffee, New York, Dining Out,
236
+ C789,27/07/2023, 20.00, Online Shopping - Electronics, Boston, Online Shopping,
237
+ A123,28/07/2023, 10.00, Snack Purchase, Chicago, Dining Out,
238
+ B456,29/07/2023, 60.00, Paycheck Deposit, Los Angeles, Income,
239
+ C789,30/07/2023, 50.00, Credit Card Payment, San Francisco, Credit Card Payment,
240
+ A123,31/07/2023, 25.00, Movie Theater Tickets, New York, Entertainment,
241
+ B456,01/08/2023, 20.00, Car Wash, Chicago, Automotive,
242
+ C789,02/08/2023, 40.00, Online Shopping, Online, Shopping,
243
+ A123,03/08/2023, 60.00, Gym Membership Renewal, Boston, Subscriptions,
244
+ B456,04/08/2023, 15.00, Dining Out - Indian Restaurant, Chicago, Dining Out,
245
+ C789,05/08/2023, 120.00, Rent Payment, Los Angeles, Rent,
246
+ A123,06/08/2023, 30.00, Online Gaming Subscription, San Francisco, Subscriptions,
247
+ B456,07/08/2023, 45.00, Doctor's Visit, Boston, Healthcare,
248
+ A123,08/08/2023, 2,500.00, Salary Credit, Chicago, Income
249
+ B456,09/08/2023, 70.00, Grocery Shopping, Los Angeles, Groceries,
250
+ C789,10/08/2023, 15.00, ATM Withdrawal - $15, New York, Cash Withdrawal,
251
+ A123,11/08/2023, 150.00, Mortgage Payment, San Francisco, Loan Payment,
252
+ B456,12/08/2023, 40.00, Utility Bill Payment, Boston, Utilities,
253
+ C789,13/08/2023, 35.00, Car Repair - Auto Shop, Chicago, Automotive,
254
+ A123,14/08/2023, 30.00, Coffee Shop - Morning Coffee, Los Angeles, Dining Out,
255
+ B456,15/08/2023, 20.00, Online Shopping - Electronics, San Francisco, Online Shopping,
256
+ C789,16/08/2023, 10.00, Snack Purchase, New York, Dining Out,
257
+ A123,17/08/2023, 60.00, Paycheck Deposit, Boston, Income,
258
+ B456,18/08/2023, 50.00, Credit Card Payment, Chicago, Credit Card Payment,
259
+ C789,19/08/2023, 25.00, Movie Theater Tickets, Los Angeles, Entertainment,
260
+ A123,20/08/2023, 20.00, Car Wash, San Francisco, Automotive,
261
+ B456,21/08/2023, 40.00, Online Shopping, Online, Shopping,
262
+ C789,22/08/2023, 60.00, Gym Membership Renewal, New York, Subscriptions,
263
+ A123,23/08/2023, 15.00, Dining Out - Mexican Restaurant, Boston, Dining Out,
264
+ B456,24/08/2023, 120.00, Rent Payment, Chicago, Rent,
265
+ C789,25/08/2023, 30.00, Online Gaming Subscription, Los Angeles, Subscriptions,
266
+ A123,26/08/2023, 45.00, Doctor's Visit, San Francisco, Healthcare,
267
+ B456,27/08/2023, 70.00, Grocery Shopping, New York, Groceries,
268
+ A123,28/08/2023, 15.00, ATM Withdrawal - $15, Boston, Cash Withdrawal,
269
+ B456,29/08/2023, 150.00, Mortgage Payment, Chicago, Loan Payment,
270
+ A123,31/08/2023, 2,500.00, Earnings Deposit, San Francisco, Income
271
+ B456,01/09/2023, 40.00, Point of Sale Shopping, Los Angeles, Shopping,
272
+ C789,02/09/2023, 20.00, Coffee Shop - Morning Coffee, Chicago, Dining Out,
273
+ A123,03/09/2023, 10.00, Snack Purchase, New York, Dining Out,
274
+ B456,04/09/2023, 60.00, Earnings Credit, Boston, Income,
275
+ C789,05/09/2023, 50.00, Credit Card Payment, San Francisco, Credit Card Payment,
276
+ A123,06/09/2023, 25.00, Movie Theater Tickets, Los Angeles, Entertainment,
277
+ B456,07/09/2023, 20.00, Car Wash, Chicago, Automotive,
278
+ C789,08/09/2023, 40.00, Online Shopping, Online, Shopping,
279
+ A123,09/09/2023, 60.00, Gym Membership Renewal, San Francisco, Subscriptions,
280
+ B456,10/09/2023, 15.00, Dining Out - Sushi Restaurant, New York, Dining Out,
281
+ C789,11/09/2023, 120.00, Rent Payment, Boston, Rent,
282
+ A123,12/09/2023, 30.00, Online Gaming Subscription, Los Angeles, Subscriptions,
283
+ B456,13/09/2023, 45.00, Doctor's Visit, Chicago, Healthcare,
284
+ C789,14/09/2023, 70.00, Grocery Shopping, San Francisco, Groceries,
285
+ A123,15/09/2023, 15.00, ATM Withdrawal - $15, Los Angeles, Cash Withdrawal,
286
+ B456,16/09/2023, 150.00, Mortgage Payment, Boston, Loan Payment,
287
+ C789,17/09/2023, 40.00, Utility Bill Payment, Chicago, Utilities,
288
+ A123,18/09/2023, 35.00, Car Repair - Auto Shop, New York, Automotive,
289
+ B456,19/09/2023, 30.00, Coffee Shop - Morning Coffee, San Francisco, Dining Out,
290
+ C789,20/09/2023, 20.00, Online Shopping - Electronics, Los Angeles, Online Shopping,
291
+ A123,21/09/2023, 10.00, Snack Purchase, Chicago, Dining Out,
292
+ B456,22/09/2023, 60.00, Earnings Credit, Boston, Income,
293
+ C789,23/09/2023, 50.00, Credit Card Payment, San Francisco, Credit Card Payment,
294
+ A123,24/09/2023, 25.00, Movie Theater Tickets, Los Angeles, Entertainment,
295
+ B456,25/09/2023, 20.00, Car Wash, Chicago, Automotive,
296
+ C789,26/09/2023, 40.00, Online Shopping, Online, Shopping,
297
+ A123,27/09/2023, 60.00, Gym Membership Renewal, New York, Subscriptions,
298
+ B456,28/09/2023, 15.00, Dining Out - Indian Restaurant, San Francisco, Dining Out,
299
+ C789,29/09/2023, 120.00, Rent Payment, Los Angeles, Rent,
300
+ A123,30/09/2023, 30.00, Online Gaming Subscription, Chicago, Subscriptions,
301
+ B456,01/10/2023, 45.00, Doctor's Visit, Boston, Healthcare,
302
+ C789,02/10/2023, 70.00, Grocery Shopping, San Francisco, Groceries,
303
+ A123,03/10/2023, 15.00, ATM Withdrawal - $15, Los Angeles, Cash Withdrawal,
304
+ B456,04/10/2023, 150.00, Mortgage Payment, Chicago, Loan Payment,
305
+ C789,05/10/2023, 40.00, Utility Bill Payment, New York, Utilities,
306
+ A123,06/10/2023, 35.00, Car Repair - Auto Shop, San Francisco, Automotive,
307
+ B456,07/10/2023, 30.00, Coffee Shop - Morning Coffee, Boston, Dining Out,
308
+ C789,08/10/2023, 20.00, Online Shopping - Electronics, Los Angeles, Online Shopping,
309
+ A123,09/10/2023, 10.00, Snack Purchase, Chicago, Dining Out,
310
+ B456,10/10/2023, 60.00, Earnings Credit, San Francisco, Income,
311
+ C789,11/10/2023, 50.00, Credit Card Payment, New York, Credit Card Payment,
312
+ A123,12/10/2023, 25.00, Movie Theater Tickets, Boston, Entertainment,
313
+ B456,13/10/2023, 20.00, Car Wash, Chicago, Automotive,
314
+ C789,14/10/2023, 40.00, Online Shopping, Online, Shopping,
315
+ A123,15/10/2023, 60.00, Gym Membership Renewal, Los Angeles, Subscriptions,
316
+ B456,16/10/2023, 15.00, Dining Out - Mexican Restaurant, San Francisco, Dining Out,
317
+ C789,17/10/2023, 120.00, Rent Payment, Chicago, Rent,
318
+ A123,18/10/2023, 30.00, Online Gaming Subscription, New York, Subscriptions,
319
+ B456,19/10/2023, 45.00, Doctor's Visit, Boston, Healthcare,
320
+ C789,20/10/2023, 70.00, Grocery Shopping, Los Angeles, Groceries,
321
+ A123,21/10/2023, 15.00, ATM Withdrawal - $15, San Francisco, Cash Withdrawal,
322
+ B456,22/10/2023, 150.00, Mortgage Payment, Chicago, Loan Payment,
323
+ C789,23/10/2023, 40.00, Utility Bill Payment, Boston, Utilities,
324
+ A123,24/10/2023, 35.00, Car Repair - Auto Shop, Los Angeles, Automotive,
325
+ B456,25/10/2023, 30.00, Coffee Shop - Morning Coffee, San Francisco, Dining Out,
326
+ C789,26/10/2023, 20.00, Online Shopping - Electronics, New York, Online Shopping,
327
+ A123,27/10/2023, 10.00, Snack Purchase, Chicago, Dining Out,
transactions.py ADDED
@@ -0,0 +1,88 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # coding=utf-8
2
+ # Copyright 2020 The HuggingFace Datasets Authors and the current dataset script contributor.
3
+ #
4
+ # Licensed under the Apache License, Version 2.0 (the "License");
5
+ # you may not use this file except in compliance with the License.
6
+ # You may obtain a copy of the License at
7
+ #
8
+ # http://www.apache.org/licenses/LICENSE-2.0
9
+ #
10
+ # Unless required by applicable law or agreed to in writing, software
11
+ # distributed under the License is distributed on an "AS IS" BASIS,
12
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ # See the License for the specific language governing permissions and
14
+ # limitations under the License.
15
+ """Transactions Dataset"""
16
+
17
+
18
+ import csv
19
+
20
+ import datasets
21
+
22
+
23
+ # TODO: Add transaction citation
24
+ # Find for instance the citation on arxiv or on the dataset repo/website
25
+ _CITATION = """\
26
+ @misc{mccreery2020effective,
27
+ title={Effective Transfer Learning for classifying Transactions},
28
+ author={AK},
29
+ year={2020},
30
+ eprint={2008.13546},
31
+ archivePrefix={arXiv},
32
+ primaryClass={cs.IR}
33
+ }
34
+ """
35
+
36
+
37
+ _DESCRIPTION = """\
38
+ This dataset consists of 378 transactions performed on account and categorised according to the description of the transaction.
39
+ """
40
+
41
+ _HOMEPAGE = "https://github.com/alokkulkarni/transactions"
42
+
43
+ _LICENSE = ""
44
+
45
+
46
+ _URL = "https://raw.githubusercontent.com/alokkulkarni/transactions/master/transactions.csv"
47
+
48
+
49
+ class MedicalQuestionsPairs(datasets.GeneratorBasedBuilder):
50
+ """Transactions Dataset"""
51
+
52
+ def _info(self):
53
+ features = datasets.Features(
54
+ {
55
+ "Account": datasets.Value("string"),
56
+ "Date": datasets.Value("string"),
57
+ "Amount": datasets.Value("string"),
58
+ "Description": datasets.Value("String"),
59
+ "Location": datasets.Value("string"),
60
+ "Category": datasets.features.ClassLabel(num_classes=16, names=[ "Fuel", "Income", "Credit_Card_Payment", "Entertainment", "Shopping", "Rent", "Subscriptions", "Healthcare", "Groceries", "Cash_Withdrawal", "Loan_Payment", "Utilities", "Automotive", "Online_Shopping", "Dining_Out", "Miscellaneous" ]),
61
+ }
62
+ )
63
+ return datasets.DatasetInfo(
64
+ description=_DESCRIPTION,
65
+ features=features,
66
+ homepage=_HOMEPAGE,
67
+ license=_LICENSE,
68
+ citation=_CITATION,
69
+ )
70
+
71
+ def _split_generators(self, dl_manager):
72
+ data_file = dl_manager.download_and_extract(_URL)
73
+ return [datasets.SplitGenerator(name=datasets.Split.TRAIN, gen_kwargs={"filepath": data_file})]
74
+
75
+ def _generate_examples(self, filepath):
76
+ """Yields examples."""
77
+ with open(filepath, encoding="utf-8") as f:
78
+ data = csv.reader(f)
79
+ for id_, row in enumerate(data):
80
+ yield id_, {
81
+ "Account": row[0],
82
+ "Date": row[1],
83
+ "Amount": row[2],
84
+ "Description": row[3],
85
+ "Location" : row[4],
86
+ "Category": row[5]
87
+ }
88
+