def na_ratio(ts: 'TimeSeries') ->float:
    """
    Computes the ratio of missing values in percent.

    :param ts: The TimeSeries to check for missing values.
    :return: A float, the percentage of missing values in `ts`.
    """
    return 100 * ts.pd_series().isnull().sum() / len(ts)
