r/Python • u/blademan88 • Aug 07 '14
Python for business analytics reporting
Hi all,
We have a database with a bunch of data we'd like reporting on. The plan is to generate about 40 graphs/day. I'm not here to ask how to format a graph or something like that, but rather I'm trying to understand high level what is the best option for tackling this. I am debating if to use Excel or Python for this. Excel will be easy to make graphs but a little bit harder to automate end to end and will be harder to set up alerts (e.g. if value increase 10% day over day, send an alert). Overall, I'm familiar with Excel options but wanted to understand what the community thought would be the best options for tackling business reporting with Python. Some specific questions:
- What graphing library would I use? I've used matplotlib but I'm wondering if there is a package better suited for creating nice looking relatively simple business charts.
- What can I use to combine and distribute the results? Is there a library that helps me combine everything into a nicely distributed PDF (or some other format)?
- Do you have any additional thoughts/concerns/callouts for trying to achieve this goal?
I'm not determined to use Excel or Python, it just seems like it would be easiest. If someone has a different suggestion, I'd be very open to using it.
I very much appreciate the help.
Edit: Great to see so much feedback. Some additional notes:
- Our data is stored in Redshift, which is a AWS data warehouse based on a heavily modified version of postgres.
- I use Excel for Mac. I've thought many times about switching to PC but our entire company runs on mac, so I'm worried that when I do create Excel programs that others will use, we'll have compatibility issues. I bring this up because I think its a knock for Excel since VBA is not ideal on PC.
- I have access to EC2 and any other AWS service.
View all comments
Show parent comment
1
u/fnl Aug 08 '14
Sure; check out the shiny docs, e.g., the observers. And you can send HTML-formatted email with a few tricks from an R script, too. (Oh, and regarding some of the other comments here: R does support OOP and modularity, and you can write some very beautiful code in R, designing elegant libraries and applications -- if you know how to work with R, just as with any other framework/tool/language...)
However, be aware that, in the end, all roads lead to Rome. Your tool of choice (Excel, Python, R, whatever) should be the tool you know best - unless you are getting payed for investigating a new tool and the months it will cost you to use it properly. So, for you, that probably means going with either Python or Excel. I don't know enough Excel/VB stuff to give you an answer on that question, however.