Coder Social home page Coder Social logo

pdf_analytics_report's Introduction

Generate Analytics Report

Analytics Report

This repo goes along with my YouTube video "Generating an Analytics Report (PDF) in Python". In it we learn how to use the fpdf library to create a report like the one you see above.

Link to video: https://youtu.be/UmN2_R4KEg8

Setup

You'll want to download all of this code locally. The easiest way to do that is cloning the repo.

$ git clone https://github.com/KeithGalli/generate-analytics-report.git

If you have any trouble doing this, you can download the zip folder of this repo and then extract the files to a local file. Once you have all the files cloned locally, you should make sure you have all the necessary libraries installed.

$ pip install fpdf
$ pip install pandas numpy matplotlib
$ pip install plotly
$ pip install -U kaleido

If you run into an error with NumPy, changing the version to 1.19.3 fixed the issue for me

$ pip install numpy==1.19.3

To test if everything is set up properly, try running python generate_report.py. You should get a fresh report file. You'll have to change helper.py to read from the online version of the data if you want to access the previous day (uncomment the BASE_PATH URL and comment BASE_PATH='./data'). You will also have to comment out the hard coded date at the bottom of generate_report.py file. I saved it this way so not too many unneccesary requests to the GitHub server were made while testing.

pdf_analytics_report's People

Contributors

juansacollins avatar

Stargazers

Abhijeet avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.