Skip to content

Roll Rate Analysis python package. Both month over month and snapshot roll rate functionalities are supported. It utilizes Polars library for optimization and speed.

License

Notifications You must be signed in to change notification settings

alexliap/roll_rate_analysis

Repository files navigation

Roll Rate Analysis

deploy on pypi PyPI Version Downloads

Roll rate analysis is a type of analysis made in the sector of credit risk and is used to define the target variable. More specifically, it is used in the creation of Risk Application, and Behavioral Scorecards. Usually, it is a multiple iteration process which makes the process difficult if someone is working on custom code. The purpose of this package is to make the process easier by parametrizing a lot of factors needed in each case and iteration.

It is currently under development.

Installation

The package exists on PyPI so tou can install it directly to your environment by running the command

pip install roll-rate-analysis

Dependencies

  • numpy
  • pandas
  • polars

Additional packages for development:

  • pytest
  • pre-commit

Development

If you want to contribute you fork the repository and clone it on your machine

git clone https://github.com/alexliap/roll_rate_analysis.git

And after you create you environment (either venv or conda) and activate it then run this command

pip install -e .[dev]

That way not only the required dependencies are installed but also the development ones.

Also this makes it so that when you import the code to test it, you can do it like any other module but containing the changes you made locally.

Before you decide to commit, run the following command to reformat code in order to be in the acceptable style.

pre-commit install
pre-commit run --all-files

About

Roll Rate Analysis python package. Both month over month and snapshot roll rate functionalities are supported. It utilizes Polars library for optimization and speed.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages