def METHOD_NAME(file):
    if file.endswith(".json"):
        df = pd.read_json(file)
    else:
        # This assumes we're using a csv generated by convert_json_to_csv.py
        df = pd.read_csv(file, skiprows=1, index_col=0)
    return df