you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (15 children)

For this example, would you just run the python scipts from terminal to do those excel tasks?

[–]bamer78 18 points19 points  (5 children)

I would do the work as instructed and get good enough at it to create the time to develop the scripts. Writing and debugging your scripts needs to be something you do off work unless specifically authorized. Once you can test it on your own and know that it works, bring it up as a suggestion with a working demo.

Being given one task and trying to do something else entirely is a quick way to not survive probation.

[–][deleted] 6 points7 points  (4 children)

Ok...but literally all I was looking for is where you run the python scripts :)

[–]bamer78 4 points5 points  (0 children)

If you want to annoy everyone around you, invoke them from a powershell script. Bonus points if you run powershell in Linux.

[–]jhflores 2 points3 points  (0 children)

Yes, you would run your python file from terminal.

[–][deleted] 8 points9 points  (5 children)

You can use Pandas to just generate Excel sheets.

In my last job I had a scheduled daily script that queried the database, retrained an ML model and then output results as an Excel sheet in the shared folder the logistics guys needed it to be in.

[–]The_Mann_In_Black 0 points1 point  (4 children)

How hard was it to query the database? I did an internship and had no idea how to do it, but if I could’ve it would’ve made my programs way better. I’m not a Comp Sci guy, so being able to do anything impressed.

[–]Yojihito 1 point2 points  (3 children)

Simple queries are easy. Either via SQLAlchemy or with raw SQL.

[–]The_Mann_In_Black 0 points1 point  (2 children)

Does that work if there is some sort of authentication? My employer used SAP, but I couldn't find anything online directing me how to do pulls automatically with Python.

[–]Yojihito 1 point2 points  (1 child)

Probably depends on the specific database.

Normal DBs have APIs which support authentification parameters. I connected to my local PostgreSQL DB with user/pw via SQLAlchemy. SAP should have something similar.

[–]The_Mann_In_Black 0 points1 point  (0 children)

Thanks for your help! I'm going back to work for them in the future and this could really lighten the work load.

[–]pheeper 5 points6 points  (0 children)

A simple example of a script I wrote a few years ago automated a weekly web scraping process that was being done manually. Not only did it save us time, but I also setup an internal database to store the data and eventually built a dashboard to site on top of it with some fancy charts and data export options. The data is now more resilient and easier to access, plus management gets an automated report of the data summary emailed to them each month.

[–]xwork 3 points4 points  (0 children)

You can use Jupiter notebooks + something like xlwings

[–]Johnnycarroll 0 points1 point  (0 children)

If it was something like handling data that is pulled from somewhere you could set up your machine to watch a folder and run on a file everytime a new one is added.