GHG Renamer
A Python tool to rename various names used for Greenhouse Gas emissions or concentrations tables to a common naming scheme.
Example:
from ghgrenamer import to_shortname
to_shortname("CO2_emissions") # => 'CO2'
Example usage:
from ghgrenamer import to_shortname
import pandas as pd
df = pd.read_excel(
"Supplementary_Table_UoM_GHGConcentrations-1-1-0_annualmeans_v23March2017.xls",
skiprows=21,
index_col=0,
sheet_name=1
)
print([to_shortname(i) for i in df.columns])
"""
['CO2', 'CH4', 'N2O', 'HFC-134a', 'HFC-23', 'HFC-32', 'HFC-125', 'HFC-143a', 'HFC-152a', 'HFC-227ea', 'HFC-236fa', 'HFC-245fa', 'HFC-365mfc', 'HFC-43-10mee', 'NF3', # ...
"""
Alternative names are defined in names.yaml.
Run make to update them into the mappings.py submodule.
Metadata
Release files for ghgrenamer 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ghgrenamer-0.3.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for ghgrenamer-0.3.1-py2.py3-none-any.whl |
Release files / ghgrenamer-0.3.1-py2.py3-none-any.whl
| Download URL | ghgrenamer-0.3.1-py2.py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
b898ecdebf47d47de89260b11e1e28bba187ab15fdd915ace11cd33ef7bef598
|
|
BLAKE2b-256 checksum How to use checksums |
43f1b5619552d0a384aa011c7dc55f8283bbe9cc47b3d530807170ab438dc894
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.38.0 CPython/3.7.3
|
Security for ghgrenamer 0.3.1
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.