You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I want to set the units output format just for writing one output file, is there something less global than setting the pint.UnitRegistry.default_format like below?
In this case, the code is handed a unit-aware DataFrame and needs to write it out, but it doesn't have direct access to the UnitRegistry associated with it. It would be great if there's some property of df that controlled the formatting, or perhaps an argument to to_csv().
The text was updated successfully, but these errors were encountered:
If I want to set the units output format just for writing one output file, is there something less global than setting the
pint.UnitRegistry.default_format
like below?In this case, the code is handed a unit-aware DataFrame and needs to write it out, but it doesn't have direct access to the
UnitRegistry
associated with it. It would be great if there's some property ofdf
that controlled the formatting, or perhaps an argument toto_csv()
.The text was updated successfully, but these errors were encountered: