@@ -79,25 +79,6 @@ def test_make_time_series(self):
79
79
series = Series (1 , index = index )
80
80
assert isinstance (series , Series )
81
81
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
-
101
82
def test_view_asi8 (self ):
102
83
idx = PeriodIndex ([], freq = "M" )
103
84
@@ -411,7 +392,7 @@ def test_convert_array_of_periods(self):
411
392
result = Index (periods )
412
393
assert isinstance (result , PeriodIndex )
413
394
414
- def test_append_concat (self ):
395
+ def test_append_concat (self ): # TODO: pd.concat test
415
396
# #1815
416
397
d1 = date_range ("12/31/1990" , "12/31/1999" , freq = "A-DEC" )
417
398
d2 = date_range ("12/31/2000" , "12/31/2009" , freq = "A-DEC" )
@@ -442,13 +423,6 @@ def test_map(self):
442
423
exp = Index ([x .ordinal for x in index ])
443
424
tm .assert_index_equal (result , exp )
444
425
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
-
452
426
@pytest .mark .parametrize (
453
427
"msg, key" ,
454
428
[
0 commit comments