ondrolexa / petropandas

Pandas accessors for petrologists

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

petropandas

Release Build status codecov Commit activity License

Pandas accessors for petrologists

Getting started

First, import the petropandas. Note that numpy, matplotlib.pyplot, pandas and seaborn are also imported using common aliases np, plt, pd and sns:

from petropandas import *

You are now ready to use petropandas tools.

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')

GitHub actions

The CI/CD pipeline will be triggered when you open a pull request, merge to main, or when you create a new release.

Documentation

To finalize the set-up for publishing to PyPi or Artifactory, see here. For activating the automatic documentation with MkDocs, see here. To enable the code coverage reports, see here.

Releasing a new version

  • Create an API Token on Pypi.
  • Add the API Token to your projects secrets with the name PYPI_TOKEN by visiting this page.
  • Create a new release on Github.
  • Create a new tag in the form *.*.*.

For more details, see here.


Repository initiated with fpgmaas/cookiecutter-poetry.

About

Pandas accessors for petrologists

License:MIT License


Languages

Language:Python 95.7%Language:Makefile 3.2%Language:Dockerfile 1.0%