insitupy.io.read_qupath_geojson

insitupy.io.read_qupath_geojson#

insitupy.io.read_qupath_geojson(file)#

Reads a QuPath-compatible GeoJSON file and transforms it into a flat DataFrame.

Parameters: - file (Union[str, os.PathLike, Path]): The file path (as a string or pathlib.Path) of the QuPath GeoJSON file.

Returns: pandas.DataFrame: A DataFrame with flattened columns including “name” and “color” extracted from the “classification” column.

Return type:

DataFrame