Skip to content
Advertisement

Tag: custom-formatting

How can I manage units in pandas data?

I’m trying to figure out if there is a good way to manage units in my pandas data. For example, I have a DataFrame that looks like this: Currently, the measurement units are encoded in column names. Downsides include: column selection is awkward — df[‘width (m)’] vs. df[‘width’] things will likely break if the units of my source data change

Advertisement