lama/common.py
def read_spec_csv(path: Union[Path, str]) -> pd.DataFrame:
    """
    Read a CSV containing specimen data (such as organ or whole mask volumes.
    Force index to be str type

    TODO: Should we enforce column header to be str as well?
    """
    df = pd.read_csv(path, index_col=0)
    df.index = df.index.astype(str)
    return df

    Read a CSV containing specimen data (such as organ or whole mask volumes.
    Force index to be str type

    TODO: Should we enforce column header to be str as well?
    
Read a CSV containing specimen data (such as organ or whole mask volumes.
Force index to be str type


Read a CSV containing specimen data ( such as organ or whole mask volumes . Force index to be str type
def read_spec_csv(path: Union[Path, str]) -> pd.DataFrame:
    df = pd.read_csv(path, index_col=0)
    df.index = df.index.astype(str)
    return df
def read_spec_csv ( path : Union [ Path , str ] ) -> pd . DataFrame : df = pd . read_csv ( path , index_col = 0 ) df . index = df . index . astype ( str ) return df
Read a CSV containing specimen data (such as organ or whole mask volumes.
Read a CSV containing specimen data ( such as organ or whole mask volumes .
"""
    Read a CSV containing specimen data (such as organ or whole mask volumes.
    Force index to be str type

    TODO: Should we enforce column header to be str as well?
    """
path
Union[Path, str]