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¶
from si_unit_pandas import TemperatureArray
import pandas as pd
TemperatureArray([10, 20, 30, 40, 50])
View the Function Index or browse the Source Code.