#NEWLINE# def list_eq( a , b ) : #NEWLINE# #INDENT# if isinstance ( a , dd . DataFrame ) : #NEWLINE# #INDENT# a = a . compute ( get = get_sync ) #NEWLINE# #UNINDENT# if isinstance ( b , dd . DataFrame ) : #NEWLINE# #INDENT# b = b . compute ( get = get_sync ) #NEWLINE# #UNINDENT# tm . assert_index_equal ( a . columns , b . columns ) #NEWLINE# for c in a . columns : #NEWLINE# #INDENT# if ( a [ c ] . dtype in ( int , float ) ) : #NEWLINE# #INDENT# a [ c ] = a [ c ] . fillna ( 100 ) #NEWLINE# b [ c ] = b [ c ] . fillna ( 100 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# a [ c ] = a [ c ] . fillna ( 'NAN' ) #NEWLINE# b [ c ] = b [ c ] . fillna ( 'NAN' ) #NEWLINE# #UNINDENT# #UNINDENT# av = sorted ( a . values . tolist ( ) ) #NEWLINE# bv = sorted ( b . values . tolist ( ) ) #NEWLINE# assert ( av == bv ) , ( av , bv )