def METHOD_NAME(
    se: pd.Series,
    *,
    include_trivial_index: bool = False,
    header_parser: HeaderParserArg = None,
) -> DataArray:
    row_index = se.axes[0]
    row_index_name = "row" if row_index.name is None else str(row_index.name)
    name, unit = _parse_header("" if se.name is None else str(se.name), header_parser)
    coords = (
        {row_index_name: array(dims=[row_index_name], values=row_index)}
        if include_trivial_index or not _index_is_trivial(row_index, len(se))
        else {}
    )
    if se.dtype == "string":
        # se.to_numpy() and np.array(se.values) produce an array of dtype=object
        # when the series contains strings.
        values = se.to_numpy(dtype=str)
    else:
        values = se.to_numpy()
    return DataArray(
        data=array(values=values, dims=[row_index_name], unit=unit),
        coords=coords,
        name=name,
    )