@@ -62,40 +62,31 @@ def test_representation(self, method):
62
62
idx9 = pd .period_range ("2013Q1" , periods = 3 , freq = "Q" )
63
63
idx10 = PeriodIndex (["2011-01-01" , "2011-02-01" ], freq = "3D" )
64
64
65
- exp1 = "PeriodIndex([], dtype='period[D]', freq='D' )"
65
+ exp1 = "PeriodIndex([], dtype='period[D]')"
66
66
67
- exp2 = "PeriodIndex(['2011-01-01'], dtype='period[D]', freq='D' )"
67
+ exp2 = "PeriodIndex(['2011-01-01'], dtype='period[D]')"
68
68
69
- exp3 = "PeriodIndex(['2011-01-01', '2011-01-02'], dtype='period[D]', freq='D' )"
69
+ exp3 = "PeriodIndex(['2011-01-01', '2011-01-02'], dtype='period[D]')"
70
70
71
71
exp4 = (
72
72
"PeriodIndex(['2011-01-01', '2011-01-02', '2011-01-03'], "
73
- "dtype='period[D]', freq='D' )"
73
+ "dtype='period[D]')"
74
74
)
75
75
76
- exp5 = (
77
- "PeriodIndex(['2011', '2012', '2013'], dtype='period[A-DEC]', "
78
- "freq='A-DEC')"
79
- )
76
+ exp5 = "PeriodIndex(['2011', '2012', '2013'], dtype='period[A-DEC]')"
80
77
81
78
exp6 = (
82
79
"PeriodIndex(['2011-01-01 09:00', '2012-02-01 10:00', 'NaT'], "
83
- "dtype='period[H]', freq='H' )"
80
+ "dtype='period[H]')"
84
81
)
85
82
86
- exp7 = "PeriodIndex(['2013Q1'], dtype='period[Q-DEC]', freq='Q-DEC' )"
83
+ exp7 = "PeriodIndex(['2013Q1'], dtype='period[Q-DEC]')"
87
84
88
- exp8 = "PeriodIndex(['2013Q1', '2013Q2'], dtype='period[Q-DEC]', freq='Q-DEC' )"
85
+ exp8 = "PeriodIndex(['2013Q1', '2013Q2'], dtype='period[Q-DEC]')"
89
86
90
- exp9 = (
91
- "PeriodIndex(['2013Q1', '2013Q2', '2013Q3'], "
92
- "dtype='period[Q-DEC]', freq='Q-DEC')"
93
- )
87
+ exp9 = "PeriodIndex(['2013Q1', '2013Q2', '2013Q3'], dtype='period[Q-DEC]')"
94
88
95
- exp10 = (
96
- "PeriodIndex(['2011-01-01', '2011-02-01'], "
97
- "dtype='period[3D]', freq='3D')"
98
- )
89
+ exp10 = "PeriodIndex(['2011-01-01', '2011-02-01'], dtype='period[3D]')"
99
90
100
91
for idx , expected in zip (
101
92
[idx1 , idx2 , idx3 , idx4 , idx5 , idx6 , idx7 , idx8 , idx9 , idx10 ],
0 commit comments