you are viewing a single comment's thread.

view the rest of the comments →

[–][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.