Bank Statement Analysis in Mathematica

In this file, I am going to investigate my own outgoing expenses from my online banking. First, I will import the first six months of 2017 as a comma-separated values (CSV) file. Second, I will use some Mathematica built-in functions in order to classify my personal outgoing expenses. Such a classification will allow me to obtain the trend of each class.
June 23, 2017—Federico Dradi
Note that this analysis is basically the same for every class of my personal outgoing expenses. Thus, I will comment only the first class, i.e. supermarket expenses.

Importing the CSV File and Visualization of My Dataset

Import the CSV file.
fileImp=Import["f5.csv"];
Dimension of data frame.
Dimensions[fileImp]
{193,4}
Data frame visualization.
Dataset[fileImp]
Buchungstag
Beguenstigter/Zahlungspflichtiger
Betrag
0
02.06.17
GA NR00002112 BLZ26050001 0
-15.
1
02.06.17
PayPal Europe S.a.r.l. et Cie S.C.A
-14.24
2
02.06.17
GA NR00002257 BLZ26050001 0
-15.
3
01.06.17
FITNESS FIRST GERMANY GMBH
-25.
4
01.06.17
-0.7
5
01.06.17
-3.9
6
30.05.17
PayPal Europe S.a.r.l. et Cie S.C.A
-38.9
7
29.05.17
GA NR00002218 BLZ26050001 0
-30.
8
29.05.17
GA NR00002257 BLZ26050001 0
-15.
9
26.05.17
tegut... gute Lebens
-8.74
10
23.05.17
GA NR00002120 BLZ26050001 0
-20.
11
23.05.17
ALDI GmbH + Co. KG HANN.MUENDEN
-11.99
12
22.05.17
GA NR00002257 BLZ26050001 0
-20.
13
22.05.17
GA NR00002214 BLZ26050001 0
-15.
14
22.05.17
GA NR00002214 BLZ26050001 0
-10.
15
19.05.17
GA NR00002112 BLZ26050001 0
-10.
16
18.05.17
GA NR00002170 BLZ26050001 0
-10.
17
17.05.17
tegut... gute Lebens
-4.24
18
17.05.17
NETTO MARKEN-DISCOU.
-4.08
showing 1–20 of 193
Dimensions[Dataset[fileImp]]
{193,4}
Transform the data frame into a list of associations, and pad the associations with zeros where we have no values.
named=Map[AssociationThread[First[fileImp]PadRight[#,4]]&,Rest[fileImp]];

Selecting Specific Columns and Changing the Date Format

List of Months

Supermarket Expenses

Withdrawal Expenses

Travel Ticket Expenses

Rent Expenses

Visa Card Expenses

All Together

FURTHER EXPLORATIONS
A further exploration would be cleaning this code and using many more built-in functions in order to make it more efficient and beautiful.
AUTHORSHIP INFORMATION
Federico Dradi​
​6/23/17​
​​
​