import csv


def load_issues(issues_path):
    """Opens the csv file containing GitHub issue data and loads it into a
    row based table where the keys are the date of the data.
    Args:
        issues_path - str containing the pathname to the issues csv file
    Returns
        The new date indexed table of issue data
    """
    issues_dict = {}
    with open(issues_path) as issues:
        issue_rdr = csv.DictReader(issues)
        for row in issue_rdr:
            issues_dict[row["Date"]] = row

    return issues_dict