-
craftutils.wrap.dragons.Table.Column.convert_unit_to(new_unit, equivalencies=
[]) Converts the values of the column in-place from the current unit to the given unit.
To change the unit associated with this column without actually changing the data values, simply set the
unitproperty.Parameters¶
- new_unitstr or astropy.units.UnitBase instance
The unit to convert to.
- equivalencieslist of tuple
A list of equivalence pairs to try if the unit are not directly convertible. See Equivalencies.
Raises¶
- astropy.units.UnitsError
If units are inconsistent