Code Monkey home page Code Monkey logo

basiccpideflationrbi's Introduction

Adjust values for Inflation

Simple python script based on manually prepared data from CPI values published by RBI here

The script can inflate or deflate values from one year to another. It can also use linkage factors if RBI has specified it, to calculate values between years with different base years.

New

Stand alone executable for Windows is now available here

A linux distributable is coming soon.

Requirements

Python with pandas installed.

Install python, open terminal, type

git clone https://github.com/s7u512/BasicCPIDeflationRBI.git
cd BasicCPIDeflationRBI
pip install pandas
python BasicInflationAdjuster.py

Usage

StandAlone version

Just run BasicInflationAdjusterStandAlone.py in a terminal or command prompt.

CSV dependent version

Place BasicInflationAdjusterCPI.py and rbi_consumer_price_index.csv in the same directory. Then just run the script in a terminal or command prompt.

Example

Example output to find how much has Rs.2000 in 2010-11 become in 2021-22 using CPI - IW is given below

Basic Inflation Adjuster Tool
Enter Former Year (format YYYY or YYYY-YY): 1998
Enter Latter Year (format YYYY or YYYY-YY): 2007

Choose a CPI measure by entering the corresponding number:
1. CPI - IW
2. CPI โ€“ IW (Food and Beverages)
3. CPI - AL
4. CPI All India General Index Rural
5. CPI All India General Index Urban
6. CPI All India General Index Combined
7. CPI All India Combined: Food and beverages
1
Which is the known value year? Enter 'former' or 'latter': latter
Enter the known CPI value: 784
784.0 in 2007 adjusted using CPI - IW and linking factor 4.63 for the year 1998 is: 169.3304535637149

Contribute

Please help improve the code.

License

This work is licensed under the GNU GPLv3 license. This work is free: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This work is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

basiccpideflationrbi's People

Contributors

s7u512 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.