from typing import List
from typing import Dict


def gen_header(head: List[str]) -> Dict:
    """
    This is a helper function meant to generate a dictionary that contains parsing information
    for csvs. I.e. it stores how to manage datetimes, integers and floats. Strings are pretty much
    ignored.

    >>> gen_header(["date~%m/%d/%Y","sentiment_value~float"])
    {'date': "datetime.strptime(row[0],'%m/%d/%Y')", 'sentiment_value': 'float(row[1])'}
    """
    final = {}
    for val in head:
        val = val.split('~')
        final[val[0]] = val[1]
    return final