petropandas
Pandas accessors for petrologists
Installation
pip install petropandas
Optional extras
| Extra | Includes | Description |
|---|---|---|
database |
requests |
Client for the remote petrodb REST API (petropandas.database) |
extra |
jupyterlab |
JupyterLab support |
tests |
pytest, nbval |
Run the test suite |
docs |
mkdocs, ... |
Build documentation locally |
dev |
all of the above | Development setup |
pip install petropandas[database] # basic + database client
pip install petropandas[dev] # full development setup
Getting started
petropandas provides several pandas.DataFrame accessors to seemlesly integrate
common petrological calculations to your Python data analysis workflow.
from petropandas import pd, mindb
For more details check the documentation.
df = pd.read_excel("some/folder/data.xlsx")
df.oxides.molprop()
df.oxides.cations(noxy=12)
df.ree.normalize(reservoir='CI Chondrites', reference='McDonough & Sun 1995')
Database client (optional)
The petropandas.database module provides a client for a remote petrodb REST API.
Install the extra and use it alongside the accessors:
pip install petropandas[database]
from petropandas.database import PetroDB
db = PetroDB('http://127.0.0.1:8000', 'user', 'password')
project = db.projects(name="MyProject")
sample = project.samples(name="DB250")
df = sample.spots.df(mineral="Grt")
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file petropandas-0.1.4.tar.gz.
File metadata
- Download URL: petropandas-0.1.4.tar.gz
- Upload date:
- Size: 316.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
44c252ae30b60ce5885511f0c3d3984210471245040b0af30731969b81ea54b2
|
|
| MD5 |
c6a7f768bb4de2c93ac5bad8f793de1b
|
|
| BLAKE2b-256 |
bd8cf61ab475eaca0c5ce0cec10fc96cb0df638cabe903e38087f616cdf2ef1c
|
Provenance
The following attestation bundles were made for petropandas-0.1.4.tar.gz:
Publisher:
release.yml on ondrolexa/petropandas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
petropandas-0.1.4.tar.gz -
Subject digest:
44c252ae30b60ce5885511f0c3d3984210471245040b0af30731969b81ea54b2 - Sigstore transparency entry: 2165005529
- Sigstore integration time:
-
Permalink:
ondrolexa/petropandas@fbcf443906ba2a95f2d644d32a186822554905fb -
Branch / Tag:
refs/tags/0.1.4 - Owner: https://github.com/ondrolexa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fbcf443906ba2a95f2d644d32a186822554905fb -
Trigger Event:
release
-
Statement type:
File details
Details for the file petropandas-0.1.4-py3-none-any.whl.
File metadata
- Download URL: petropandas-0.1.4-py3-none-any.whl
- Upload date:
- Size: 93.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec9061fe0611d2f0e445c8a1219e7545dcd5df867997333b5a11065d3d456b09
|
|
| MD5 |
4af360b77c3af988ac8ca3f08a44e902
|
|
| BLAKE2b-256 |
4787d4bbeb7848fec77b4cd5d24178df968e27b86be5ccc20be7c604fccde2cf
|
Provenance
The following attestation bundles were made for petropandas-0.1.4-py3-none-any.whl:
Publisher:
release.yml on ondrolexa/petropandas
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
petropandas-0.1.4-py3-none-any.whl -
Subject digest:
ec9061fe0611d2f0e445c8a1219e7545dcd5df867997333b5a11065d3d456b09 - Sigstore transparency entry: 2165005553
- Sigstore integration time:
-
Permalink:
ondrolexa/petropandas@fbcf443906ba2a95f2d644d32a186822554905fb -
Branch / Tag:
refs/tags/0.1.4 - Owner: https://github.com/ondrolexa
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@fbcf443906ba2a95f2d644d32a186822554905fb -
Trigger Event:
release
-
Statement type: