Skip to main content

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

from decimal import Decimal

import pandas as pd

import pandas_money as pm

s = pd.Series(["1.11", "2.22", "3.33"], dtype="Money64")

print(s)
print(s + s)
print(s * Decimal("1.5"))
print(s / 2)
print(s.iloc[0], type(s.iloc[0]))

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

Metadata

Release files for pandas-money 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pandas-money 1.0.0
File Size Uploaded Provenance
pandas_money-1.0.0.tar.gz 7.5 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pandas-money 1.0.0
File Interpreter ABI Platform
pandas_money-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 15.9 kB

Release files / pandas_money-1.0.0.tar.gz

Download URL pandas_money-1.0.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
ef267074713555e35872e726aaa239fa44b8f120dc697335d9b1d1d14ed014b4
BLAKE2b-256 checksum
How to use checksums
5639b72c680386b9eb6deb0c9bcf78cddd94b035a8e26390c39ac27652bbac16
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Linux/5.19.0-46-generic

Release files / pandas_money-1.0.0-py3-none-any.whl

Download URL pandas_money-1.0.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4788ab5031cafd7dca802af46a336c5f35c4e62bf72144597096bbfcf8bb2ba1
BLAKE2b-256 checksum
How to use checksums
8fe4d15bd8535c77b8f3b7e080551765de5d5ee72a9c6fdb27796009b8bd094e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.2 CPython/3.11.3 Linux/5.19.0-46-generic

Security for pandas-money 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page