@@ -79,25 +79,6 @@ def test_make_time_series(self):
7979 series = Series (1 , index = index )
8080 assert isinstance (series , Series )
8181
82- def test_shallow_copy_empty (self ):
83- # GH13067
84- idx = PeriodIndex ([], freq = "M" )
85- result = idx ._view ()
86- expected = idx
87-
88- tm .assert_index_equal (result , expected )
89-
90- def test_shallow_copy_disallow_i8 (self ):
91- # GH-24391
92- pi = period_range ("2018-01-01" , periods = 3 , freq = "2D" )
93- with pytest .raises (AssertionError , match = "ndarray" ):
94- pi ._shallow_copy (pi .asi8 )
95-
96- def test_shallow_copy_requires_disallow_period_index (self ):
97- pi = period_range ("2018-01-01" , periods = 3 , freq = "2D" )
98- with pytest .raises (AssertionError , match = "PeriodIndex" ):
99- pi ._shallow_copy (pi )
100-
10182 def test_view_asi8 (self ):
10283 idx = PeriodIndex ([], freq = "M" )
10384
@@ -411,7 +392,7 @@ def test_convert_array_of_periods(self):
411392 result = Index (periods )
412393 assert isinstance (result , PeriodIndex )
413394
414- def test_append_concat (self ):
395+ def test_append_concat (self ): # TODO: pd.concat test
415396 # #1815
416397 d1 = date_range ("12/31/1990" , "12/31/1999" , freq = "A-DEC" )
417398 d2 = date_range ("12/31/2000" , "12/31/2009" , freq = "A-DEC" )
@@ -442,13 +423,6 @@ def test_map(self):
442423 exp = Index ([x .ordinal for x in index ])
443424 tm .assert_index_equal (result , exp )
444425
445- def test_insert (self ):
446- # GH 18295 (test missing)
447- expected = PeriodIndex (["2017Q1" , NaT , "2017Q2" , "2017Q3" , "2017Q4" ], freq = "Q" )
448- for na in (np .nan , NaT , None ):
449- result = period_range ("2017Q1" , periods = 4 , freq = "Q" ).insert (1 , na )
450- tm .assert_index_equal (result , expected )
451-
452426 @pytest .mark .parametrize (
453427 "msg, key" ,
454428 [
0 commit comments