verdict.py
def check_if_jagged_arr( arr ):
    '''Check if an array-like object is contains arrays of
    different sizes.

    Args:
        arr: Object to check.

    Returns:
        bool:
            True if an array-like object with arrays of different sizes.
    '''

    # Check if an array-like
    try:
        len_arr = len( arr )
    except TypeError:
        return False

    if len_arr > 1:

        for i, arr_i in enumerate( arr ):

            # Check if an array
            if pd.api.types.is_list_like( arr_i ):
                l_current = len( arr_i )
            else:
                l_current = 0

            # Check if jagged
            if i != 0:
                if l_current != l_prev:
                    return True
            l_prev = copy.copy( l_current )

            # Recurse
            if check_if_jagged_arr( arr_i ): 
                return True

        # If got to this point, then it's even
        return False
Check if an array-like object is contains arrays of
    different sizes.

    Args:
        arr: Object to check.

    Returns:
        bool:
            True if an array-like object with arrays of different sizes.
    
Check if an array-like object is contains arrays of
different sizes.
Check if an array - like object is contains arrays of different sizes .
def check_if_jagged_arr( arr ):
    try:
        len_arr = len( arr )
    except TypeError:
        return False
    if len_arr > 1:
        for i, arr_i in enumerate( arr ):
            if pd.api.types.is_list_like( arr_i ):
                l_current = len( arr_i )
            else:
                l_current = 0
            if i != 0:
                if l_current != l_prev:
                    return True
            l_prev = copy.copy( l_current )
            if check_if_jagged_arr( arr_i ): 
                return True
        return False
def check_if_jagged_arr ( arr ) : try : len_arr = len ( arr ) except TypeError : return False if len_arr > 1 : for i , arr_i in enumerate ( arr ) : if pd . api . types . is_list_like ( arr_i ) : l_current = len ( arr_i ) else : l_current = 0 if i != 0 : if l_current != l_prev : return True l_prev = copy . copy ( l_current ) if check_if_jagged_arr ( arr_i ) : return True return False
Check if an array-like object is contains arrays of
different sizes.
Check if an array - like object is contains arrays of different sizes .
'''Check if an array-like object is contains arrays of
    different sizes.

    Args:
        arr: Object to check.

    Returns:
        bool:
            True if an array-like object with arrays of different sizes.
    ''' # Check if an array-like # Check if an array # Check if jagged # Recurse # If got to this point, then it's even
True if an array-like object with arrays of different sizes.
True if an array - like object with arrays of different sizes .
bool
arr
Object to check.
Object to check .