from typing import Dict
from typing import List
import math


def get_completion(data: Dict[int, List[float]]) -> Dict[int, float]:
    """
    Turns a dictionary with float lists into a dict with the percentage of non-NaN values.
    :param data:        Input dictionary with float lists
    :return:            Output dictionary with the percentage of non-NaN values
    """
    res = dict()
    for key in data.keys():
        res[key] = (1 - len(list(filter(math.isnan, data[key]))) / len(data[key])) * 100
    return res