Skip to content

Utils

is_regression

is_regression(values: np.ndarray) -> bool

Whether the input values are for regreesion

fig2img

fig2img(fig: Figure) -> ImageType

Convert a Matplotlib figure to a PIL Image

img2bytes

img2bytes(image: ImageType)

Convert png image to bytes

bytes2img

bytes2img(image_bytes: ByteString)

Convert bytes to PIL image

save_image

save_image(image: ImageType, path: str)

Save an image to a fsspec-compatible path

is_parquet_file

is_parquet_file(path)

Verify parquet file without actually loading it.