resize()
Resize an object by the given scale factor.
Usage
resize(
obj,
scale,
)Parameters
obj: dict-
The object to resize.
scale: float-
The scale factor to apply.
Returns
dict-
The resized object.
Examples
>>> resize({"width": 100}, 0.5)
{'width': 50.0}