def check_fill_values(data):
 assert_true((data['a'].mask == [False, False]).all())
 assert_true((data['a'] == ['1', 'a']).all())
 assert_true((data['b'].mask == [False, True]).all())
 assert_true((data['b'] == [2, (-999)]).all())
 data['b'].mask = False
 assert_true((data['b'] == [2, 1]).all())

def check_fill_values ( data ) : assert_true ( ( data [ 'a' ] . mask == [ False , False ] ) . all ( ) ) assert_true ( ( data [ 'a' ] == [ '1' , 'a' ] ) . all ( ) ) assert_true ( ( data [ 'b' ] . mask == [ False , True ] ) . all ( ) ) assert_true ( ( data [ 'b' ] == [ 2 , ( - 999 ) ] ) . all ( ) ) data [ 'b' ] . mask = False assert_true ( ( data [ 'b' ] == [ 2 , 1 ] ) . all ( ) )
compare array column by column with expectation .