Giter Site home page Giter Site logo

balansrikant / hsbc-statements Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 21 KB

Python script and jupyter notebook to process HSBC pdf statements into csv files for further analysis

Jupyter Notebook 85.12% Python 14.88%
hsbc bank-statement csv python jupyter-notebook

hsbc-statements's Introduction

HSBC statements

This solution and repository contains python objects for processing HSBC bank statements and prepare csv files for analysis on YNAB and other software packages.

Pre-requisite steps -

  1. Install tabula from this path: https://tabula.technology/
  2. (optional) Install/get subscription for YNAB: https://www.youneedabudget.com/
  3. Create folder path like so:
    • \root_path\
    • \root_path<year>\1-tabula-output\
    • \root_path<year>\2-cleaned\
    • \root_path<year>\3-processed\
    • \root_path<year>\4-ynab\
  4. Download pdf statement and put in \root_path<year>\0-pdf\
  5. Open tabula, and generate csv, paste in \root_path<year>\1-tabula-output\
  6. Open file from step 2, and clean up as follows
    • no header needed
    • 6 columns: date, transaction type, payee, outflow, inflow, balance
    • some columns may have shifted... adjust them
    • sometimes strange characters in first row etc... remove them
    • save file
  7. Open \root_path\Balances.csv
    • Confirm date column is yyyy-mm-dd
    • Add new row for current month
    • Populate opening, closing balance from pdf
    • Drag-fill 'ThisMonth_Closing_NextMonth_Opening_Reconciled' for previous row and confirm it is TRUE

Script steps -

  1. Execute python script/docker container with root_path as argument
  2. Populate 'Stmt_Balance_Notebook_Balance_Reconciled' if TRUE, if not investigate
  3. (optional)Load file from \root_path<year>\4-ynab\ into YNAB

hsbc-statements's People

Contributors

sbalanchickoo avatar

Stargazers

 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.