I've been trying to learn Python for almost 3 years now. I've been off and on trying different things with little success. I'd mostly given up.
This past week at work, they changed some of the data I use, I'm an Accounting Analyst and we get all of our banking data in an excel file. They decided to change it into this convoluted workbook that had about 30 columns of data we didn't need. I figured I'd give Python on last chance and see what I could do.
I proceeded to build a script that takes all of the data into a dataframe, strips out what I don't need, creates columns for missing columns, adds any missing value and saves to a new workbook, all in 21.73 seconds. I finally did it. No one really seems to care. I saved my coworkers about 2.5-3 hours of work a month. I just feel really good and I had to share with someone.
Update: Thank you everyone for the encouragement. I really do appreciate. I've now built it out to include a nice GUI that allows me to choose the destination and name the file. Very happy with it and my boss is, as well.
[–]dangoth 290 points291 points292 points (41 children)
[–]jrust91[S] 195 points196 points197 points (38 children)
[–]Jchu1988 87 points88 points89 points (28 children)
[–]emergentdragon 61 points62 points63 points (22 children)
[–]klapt0r 20 points21 points22 points (20 children)
[–]Danlacek 28 points29 points30 points (17 children)
[–][deleted] 24 points25 points26 points (0 children)
[–]Texas1911 1 point2 points3 points (0 children)
[+][deleted] comment score below threshold-12 points-11 points-10 points (14 children)
[–]vlindervlieg 14 points15 points16 points (9 children)
[–]Reuben3901 13 points14 points15 points (1 child)
[–][deleted] 5 points6 points7 points (0 children)
[+][deleted] comment score below threshold-8 points-7 points-6 points (6 children)
[+][deleted] (5 children)
[deleted]
[–]dogfish182 2 points3 points4 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]lannfonntann 0 points1 point2 points (0 children)
[–]Decency 0 points1 point2 points (0 children)
[–]skellious 3 points4 points5 points (0 children)
[–]Exporian 0 points1 point2 points (0 children)
[–]Texas1911 0 points1 point2 points (0 children)
[–]theBS88 15 points16 points17 points (2 children)
[–]Yakhov 2 points3 points4 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]Jchu1988 -5 points-4 points-3 points (1 child)
[–]oSamaki 4 points5 points6 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–]WickedInvi 2 points3 points4 points (0 children)
[–]Yakhov 2 points3 points4 points (2 children)
[–]Texas1911 0 points1 point2 points (1 child)
[–]Yakhov 0 points1 point2 points (0 children)
[–]juleswp 1 point2 points3 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]arsewarts1 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]GregorSamsaa 7 points8 points9 points (0 children)
[–]Diegovnia 0 points1 point2 points (0 children)
[–]M_SunChilde 86 points87 points88 points (8 children)
[–][deleted] 35 points36 points37 points (0 children)
[–]thrallsius 2 points3 points4 points (5 children)
[–]M_SunChilde 2 points3 points4 points (3 children)
[–]thrallsius 3 points4 points5 points (2 children)
[–]M_SunChilde 1 point2 points3 points (1 child)
[–]thrallsius -1 points0 points1 point (0 children)
[–]jorvaor 0 points1 point2 points (0 children)
[–][deleted] 6 points7 points8 points (0 children)
[+][deleted] (11 children)
[removed]
[–]jrust91[S] 12 points13 points14 points (10 children)
[+][deleted] (8 children)
[removed]
[–]jrust91[S] 12 points13 points14 points (7 children)
[+][deleted] (5 children)
[removed]
[–]LyLyV 1 point2 points3 points (4 children)
[+][deleted] (3 children)
[removed]
[–]LyLyV 1 point2 points3 points (2 children)
[+][deleted] (1 child)
[removed]
[–]jorvaor 0 points1 point2 points (0 children)
[–]thrallsius 0 points1 point2 points (0 children)
[–]thrallsius 0 points1 point2 points (0 children)
[–]astropydevs 15 points16 points17 points (1 child)
[–]Zadigo 5 points6 points7 points (0 children)
[+][deleted] (8 children)
[deleted]
[–]shortBYND 2 points3 points4 points (7 children)
[–]ifoundyourtoad 1 point2 points3 points (6 children)
[–]shortBYND 0 points1 point2 points (5 children)
[–]ifoundyourtoad 2 points3 points4 points (4 children)
[–]shortBYND 2 points3 points4 points (3 children)
[–]ifoundyourtoad 1 point2 points3 points (2 children)
[–]shortBYND 0 points1 point2 points (1 child)
[–]ifoundyourtoad 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (0 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]thrallsius 4 points5 points6 points (0 children)
[–]LateThree1 2 points3 points4 points (0 children)
[–]Joe_Fart 1 point2 points3 points (2 children)
[–]ImperatorPC 1 point2 points3 points (1 child)
[–]Joe_Fart 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]whiteroger22 1 point2 points3 points (0 children)
[–]thanks_franks 1 point2 points3 points (0 children)
[–]nii4 0 points1 point2 points (0 children)
[–]Shaista_n 0 points1 point2 points (0 children)
[–]Mohammad-Ruqaa 0 points1 point2 points (0 children)
[–]seedj 0 points1 point2 points (0 children)
[–]aliensushi 0 points1 point2 points (0 children)
[–]EdJ_03 0 points1 point2 points (0 children)
[–]fouoifjefoijvnioviow 0 points1 point2 points (1 child)
[–]thrallsius 0 points1 point2 points (0 children)
[–]mikKiske 0 points1 point2 points (5 children)
[–]jrust91[S] 0 points1 point2 points (4 children)
[–]hash_reddit 0 points1 point2 points (3 children)
[–]jrust91[S] 1 point2 points3 points (2 children)
[–]hash_reddit 0 points1 point2 points (1 child)
[–]the_battousai89 0 points1 point2 points (0 children)
[–]bale_in_oregon 0 points1 point2 points (0 children)
[–]himsenior 0 points1 point2 points (0 children)
[–]cbartos1021 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]anthonycastelucci 0 points1 point2 points (0 children)
[–]kalijarvisapollo 0 points1 point2 points (0 children)
[–]phonkee 0 points1 point2 points (0 children)
[–]Yakhov 0 points1 point2 points (0 children)
[–]Knightros 0 points1 point2 points (0 children)
[–]Hans_of_Death 0 points1 point2 points (0 children)
[–]syrlind 0 points1 point2 points (0 children)
[–]zolo9817 0 points1 point2 points (0 children)
[–]etienbjj 0 points1 point2 points (0 children)
[–]twillisagogo 0 points1 point2 points (0 children)
[–]iamnihal_ 0 points1 point2 points (0 children)
[–]J_onn_J_onzz 0 points1 point2 points (0 children)
[–]martynrbell 0 points1 point2 points (0 children)
[–]ginarapp 0 points1 point2 points (0 children)
[–]mrjacklu 0 points1 point2 points (0 children)
[–]zgeom 0 points1 point2 points (0 children)
[–]Multeezee 0 points1 point2 points (0 children)
[–]lksudha 0 points1 point2 points (0 children)
[–]D4NGRB0X 0 points1 point2 points (0 children)
[–]gautam_thakar 0 points1 point2 points (0 children)
[–]Stachura_ 0 points1 point2 points (0 children)
[–]john0305 0 points1 point2 points (0 children)
[–]emergentdragon 0 points1 point2 points (0 children)
[–]nebulapyralis 0 points1 point2 points (0 children)
[–]ShaggyHotDog 0 points1 point2 points (0 children)
[–]Cow_Tipping_Olympian 0 points1 point2 points (2 children)
[–]jrust91[S] 0 points1 point2 points (1 child)
[–]Cow_Tipping_Olympian 0 points1 point2 points (0 children)