def get_x_ang_vel(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 x angular velocity 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 x angular velocity for a single row specified by arg will be output.
        multiple_row: boolean
            If chosen the x angular velocity for multiple rows specified by arg will be output.
        row_section: boolean
            If chosen the x angular velocity for a row section by arg will be output.

    Return:

        An array of x angular velocity.
    """
    x_ang_vel = []
    if single_row is True:
        x_ang_vel_segment = list(data.values[(arg), 37:41])
        x_ang_vel_segment.reverse()
        x_ang = int(''.join(map(str, x_ang_vel_segment)))
        x_ang_vel.append(x_ang)
    elif multiple_row is True:
        for index, elem in enumerate(arg):
            x_ang_vel.append('new row')
            x_ang_vel_segment = list(data.values[(elem), 37:41])
            x_ang_vel_segment.reverse()
            x_ang = int(''.join(map(str, x_ang_vel_segment)))
            x_ang_vel.append(x_ang)
    elif row_section is True:
        for row in range(arg[0], arg[1] + 1):
            x_ang_vel.append('new row')
            x_ang_vel_segment = list(data.values[(row), 37:41])
            x_ang_vel_segment.reverse()
            x_ang = int(''.join(map(str, x_ang_vel_segment)))
            x_ang_vel.append(x_ang)
    return x_ang_vel
