{"version":"1.0","type":"rich","title":"Gist 0350c21c054d3bc0f23d8ddd8c857ed1","description":"This example shows a reusable Python function that converts lists of numeric values between different units of measurement using the Pint library. It defines `convert`, which takes an array, a source unit, and a target unit, then applies Pint’s `Quantity` constructor and `.to()` method to return a list of converted quantities. The code relies on `pint.UnitRegistry` to access unit definitions, as demonstrated in the docstring where inches are converted to meters. The function is designed for interactive use, such as in IPython, to avoid repeating unit conversion logic.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-0350c21c054d3bc0f23d8ddd8c857ed1?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}