from typing import Dict
from typing import List
import math


def get_mean(data: Dict[int, List[float]]) -> Dict[int, float]:
    """
    Turns a dictionary with float lists into a dict with mean values of all non-NaN list entries.
    :param data:        Input dictionary with float lists
    :return:            Output dictionary with float mean values
    """
    res = dict()
    for key in data.keys():
        length = len(list(filter(lambda x: not math.isnan(x), data[key])))
        res[key] = None if length == 0 else sum(filter(lambda x: not math.isnan(x), data[key])) / length
    return res