Python Numerize Library
Numerize is that library of python which is used to show large numbers into its readable format. It basically converts numerical format into the compact short format. There is no need to show how many zeroes are behind the number. It itself checks the numeric digits behind the coefficient and then provides output in the compact short form accordingly.
It enhances the understanding as there is no need to write a number of zeroes behind the number coefficient(also called as trailing zeroes).
1 -> 1 10 -> 10 100 -> 100 1000 -> 1k 1500 -> 1.5k 1000000 -> 1M 1000000000 -> 1B 1000000000000 -> 1T
- Here k represents thousand (i.e. coefficient will have 3 trailing digits ), M represents Million (i.e. coefficient will have 6 trailing digits), B represents Billion (i.e. coefficient will have 9 trailing digits)and T represents Trillion (i.e. coefficient will have 12 trailing digits).
- It will convert numerical numbers only up to 100T.
To install this module type the below command in the terminal.
pip install numerize
100 1k 1.5k 1M 1.12M 10B
1.23M 1.2479M 12.134K