Skip to content

Commit 7ab99ca

Browse files
committed
TST: add tests for GH6274
1 parent d17b83d commit 7ab99ca

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

doc/source/release.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Bug Fixes
7575
- Inconsistent tz parsing Timestamp/to_datetime for current year (:issue:`5958`)
7676
- Indexing bugs with reordered indexes (:issue:`6252`, :issue:`6254`)
7777
- Bug in ``.xs`` with a Series multiindex (:issue:`6258`, :issue:`5684`)
78-
- Bug in conversion of a string types to a DatetimeIndex with a specified frequency (:issue:`6273`)
78+
- Bug in conversion of a string types to a DatetimeIndex with a specified frequency (:issue:`6273`, :issue:`6274`)
7979

8080
pandas 0.13.1
8181
-------------

pandas/tests/test_index.py

+5
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,11 @@ def test_constructor_from_series(self):
166166
df['date'] = ['1-1-1990', '2-1-1990', '3-1-1990', '4-1-1990', '5-1-1990']
167167
result = DatetimeIndex(df['date'], freq='MS')
168168

169+
# GH 6274
170+
# infer freq of same
171+
result = pd.infer_freq(df['date'])
172+
self.assertEqual(result,'MS')
173+
169174
def test_index_ctor_infer_periodindex(self):
170175
from pandas import period_range, PeriodIndex
171176
xp = period_range('2012-1-1', freq='M', periods=3)

0 commit comments

Comments
 (0)