def get_y_accel(data, arg, single_row=False, multiple_row=False,
    row_section=False):
    """
    Takes in a file and row arguement(s) along with a boolean that specifies the amount of rows to read the y acceleration for.

    Parameter:

        data: file
            The csv file that is passed in to read.
        arg: int
            The row(s) that are to be read.
        single_row: boolean
            If chosen the y acceleration for a single row specified by arg will be output.
        multiple_row: boolean
            If chosen the y acceleration for multiple rows specified by arg will be output.
        row_section: boolean
            If chosen the y acceleration for a row section by arg will be output.

    Return:

        An array of y acceleration.
    """
    y_accel = []
    if single_row is True:
        y_accel_segment = list(data.values[(arg), 29:33])
        y_accel_segment.reverse()
        y = int(''.join(map(str, y_accel_segment)))
        y_accel.append(y)
    elif multiple_row is True:
        for index, elem in enumerate(arg):
            y_accel.append('new row')
            y_accel_segment = list(data.values[(elem), 29:33])
            y_accel_segment.reverse()
            y = int(''.join(map(str, y_accel_segment)))
            y_accel.append(y)
    elif row_section is True:
        for row in range(arg[0], arg[1] + 1):
            y_accel.append('new row')
            y_accel_segment = list(data.values[(row), 29:33])
            y_accel_segment.reverse()
            y = int(''.join(map(str, y_accel_segment)))
            y_accel.append(y)
    return y_accel
