#NEWLINE# def test_drop_duplicates_metadata( self ) : #NEWLINE# #INDENT# idx = pd . timedelta_range ( '1 day' , '31 day' , freq = 'D' , name = 'idx' ) #NEWLINE# result = idx . drop_duplicates ( ) #NEWLINE# self . assert_index_equal ( idx , result ) #NEWLINE# self . assertEqual ( idx . freq , result . freq ) #NEWLINE# idx_dup = idx . append ( idx ) #NEWLINE# self . assertIsNone ( idx_dup . freq ) #NEWLINE# result = idx_dup . drop_duplicates ( ) #NEWLINE# self . assert_index_equal ( idx , result ) #NEWLINE# self . assertIsNone ( result . freq )