import csv
from pathlib import Path


def csv_to_kvstore(fname):
    """ Parse CSV file into key-value store where keys are 
    always filepaths, and values are always floats """
    with open(fname, mode="r") as f:
        reader = csv.reader(f)
        next(reader, None)  # Skip one row of headers
        return {Path(row[0]): float(row[1]) for row in reader}