A Pandas ArrayExtension for handling currency with int64 performance
Project description
Pandas Money
A Pandas ArrayExtension for handling currency with int64 performance
Getting started
Add to your project
poetry add pandas-money
or with pip/pipenv
pipenv install pandas-money
Example
import pandas as pd
import pandas_money as pm
from decimal import Decimal
s = pd.Series(["1.11", "2.22", "3.33"], dtype="money64")
print(s)
print(s + s)
print(s * Decimal("1.5"))
print(s / 2)
outputs
0 $1.11
1 $2.22
2 $3.33
dtype: money64
0 $2.22
1 $4.44
2 $6.66
dtype: money64
0 $1.66
1 $3.33
2 $5.00
dtype: money64
0 $0.56
1 $1.11
2 $1.66
dtype: money64
$1.11 <class 'moneyed.classes.Money'>
Setup
- Clone repo
poetry install
Run tests
make test
Format and lint before commit
make pre-commit
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pandas_money-0.1.1.tar.gz
(5.8 kB
view hashes)
Built Distribution
Close
Hashes for pandas_money-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 525d481371eab9e1bae9ea8777721cd205299d483a845b9b3a05aa932a5a016a |
|
MD5 | 7b9d53973e3c2475166df4d8923f5e49 |
|
BLAKE2b-256 | 4036163ed0e8296c6af3d7ee35a263aa9c38973e8b14e3ea3579354d2929ccb1 |