#NEWLINE# def test_reindex_axes( self ) : #NEWLINE# #INDENT# df = DataFrame ( np . ones ( ( 3 , 3 ) ) , index = [ datetime ( 2012 , 1 , 1 ) , datetime ( 2012 , 1 , 2 ) , datetime ( 2012 , 1 , 3 ) ] , columns = [ 'a' , 'b' , 'c' ] ) #NEWLINE# time_freq = date_range ( '2012-01-01' , '2012-01-03' , freq = 'd' ) #NEWLINE# some_cols = [ 'a' , 'b' ] #NEWLINE# index_freq = df . reindex ( index = time_freq ) . index . freq #NEWLINE# both_freq = df . reindex ( index = time_freq , columns = some_cols ) . index . freq #NEWLINE# seq_freq = df . reindex ( index = time_freq ) . reindex ( columns = some_cols ) . index . freq #NEWLINE# self . assertEqual ( time_freq , both_freq ) #NEWLINE# self . assertEqual ( index_freq , seq_freq )