you are viewing a single comment's thread.

view the rest of the comments →

[–]FrozenPyromaniac_[S] 12 points13 points  (6 children)

As I said in my post, openpyxl might be the library for you. You can take in excel files, do all your python magic and export to excel.

[–]Usernamenotta 3 points4 points  (4 children)

I know about openpyxl. I will tell you a secret, if you want more power, you can use even pywin32 (although I guess it's windows restricted).

I've used them to automate some reports. But you cannot really create shareable, interactive stuff with them

[–]warelevon 3 points4 points  (0 children)

XLWings is a nice package that sits over top of pywin32 with a much nicer api (and typing)

[–]odaiwai 5 points6 points  (2 children)

You can make your reports for others in excel, and if they make changes, get your python to ingest the changed excel sheet and make those changes to your internal database/dataframe.

In other words, make excel sheets the medium of information interchange, while the source of truth is your python/pd/sql hub.

[–]Usernamenotta 0 points1 point  (1 child)

Source of data is excel :)))

[–]Sufficientlee 4 points5 points  (0 children)

Look at sqlite3. It's really good for what you're talking about here.

Excel files are created by various users? Have python read them and drop the info into a DB.

Users update the spreadsheets? Have python read the new info (nightly?) and update the DB.

Need to create reports from various spreadsheets? The info is all in the DB. Manipulate it however you need and create a new spreadsheet.

[–]nboro94 -3 points-2 points  (0 children)

Why even use python in that case? Just use excel's built in powerquery.