si_unit_pandas
Custom Pandas dtypes for values with SI units.
si_unit_pandas provides support for storing temperatures inside a pandas DataFrame using pandas’ Extension Array Interface
Docs |
|
|---|---|
Tests |
|
Activity |
|
QA |
|
Other |
python3 -m pip install git+https://github.com/domdfcoding/si_unit_pandas@master --user
Key Concepts
CelsiusType
This is a data type (like numpy.dtype('int64') or
pandas.api.types.CategoricalDtype(). For the most part, you won’t interact
with CelsiusType directly. It will be the value of the .dtype attribute on
your arrays.
Example
# 3rd party
import pandas as pd
# this package
from si_unit_pandas import TemperatureArray
TemperatureArray([10, 20, 30, 40, 50])
Documentation
View the Function Index or browse the Source Code.