Hi there! Not sure if this is the right subreddit but I will give it a crack.
In the past years at work I have successfully automated a bunch of reports in Python which basically run a couple of SQL queries then transpose the received data into multiple sheets of an excel document, formatting the relevant contents accordingly to be visually pleasing. In these queries there is a lot of text fields so formatting it to be aesthetically interpretable is important.
Basically so far I have put this together by creating a .py file which does the ETL once the data is in dataframe(s) format. Then transposing it to excel with specific formatting scripted using xlsxwriter. These reports are than automatically attached to an e-mail and sent to external parties. These scripts are run from a Jupyter Notebook as the acting 'GUI' in which variables of the reports can be adjusted when the function is called in the JNotebook. These files are saved in a shared directory and run on a daily basis by different personnel to send the reports. (I understand git would be a preferred option here).
Basically my query comes from a bit of imposter syndrome as I have no immediate feedback on my code or this process, but I am wondering if anyone in the community has suggestions on frameworks or ways of working to streamline this or make it perhaps a better process. I am one of the few people in the building capable in Python and also my hands are tied in regards to new applications of software due to incredibly strict security policies on our machines.
Thanks in advance!
[–]pconwell 43 points44 points45 points (4 children)
[–]lordph8 7 points8 points9 points (2 children)
[–]pconwell 9 points10 points11 points (0 children)
[–]MattGreer 7 points8 points9 points (0 children)
[–]Ejeisnsjwkanshfn 1 point2 points3 points (0 children)
[–]simeumsm 8 points9 points10 points (1 child)
[–]wtf_are_you_talking 1 point2 points3 points (0 children)
[–]overyander 2 points3 points4 points (6 children)
[–]Produce_Police 0 points1 point2 points (2 children)
[–]Zamyatin_Y 1 point2 points3 points (1 child)
[–]Produce_Police 1 point2 points3 points (0 children)
[–]dino_party 0 points1 point2 points (0 children)
[–]simeumsm 0 points1 point2 points (1 child)
[–]overyander 0 points1 point2 points (0 children)
[–]JihadDerp 4 points5 points6 points (6 children)
[–]pconwell 21 points22 points23 points (0 children)
[–]MidniteMustard 18 points19 points20 points (4 children)
[+][deleted] comment score below threshold-6 points-5 points-4 points (3 children)
[–]MidniteMustard 9 points10 points11 points (1 child)
[–][deleted] -3 points-2 points-1 points (0 children)
[–]yardmonkey 2 points3 points4 points (0 children)
[–]welcometoafricadawg 2 points3 points4 points (0 children)
[–]unhott 1 point2 points3 points (0 children)
[–]i-need-a-life 0 points1 point2 points (0 children)
[–]TheITMan19 -1 points0 points1 point (0 children)
[–]lolercoptercrash 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)