verdict.py
def arr_depth( a, level=1 ):
        '''Get the array depth, even for a jagged array.'''

        if len( a ) == 0:
            return level

        depths = []
        for v in a:
            if pd.api.types.is_list_like( v ):
                depths.append( arr_depth( v, level+1 ) )
            else:
                depths.append( level )

        return max( depths )
Get the array depth, even for a jagged array.
Get the array depth, even for a jagged array.
Get the array depth even for a jagged array .
def arr_depth( a, level=1 ):
        if len( a ) == 0:
            return level
        depths = []
        for v in a:
            if pd.api.types.is_list_like( v ):
                depths.append( arr_depth( v, level+1 ) )
            else:
                depths.append( level )
        return max( depths )
def arr_depth ( a , level = 1 ) : if len ( a ) == 0 : return level depths = [ ] for v in a : if pd . api . types . is_list_like ( v ) : depths . append ( arr_depth ( v , level + 1 ) ) else : depths . append ( level ) return max ( depths )
Get the array depth, even for a jagged array.
Get the array depth even for a jagged array .
'''Get the array depth, even for a jagged array.'''
a
level