Skip to content

Commit 0eb28e8

Browse files
committed
Try removing freq infer
1 parent a874f5f commit 0eb28e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

pandas/tseries/frequencies.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,6 @@ def infer_freq(index, warn=True):
241241
ValueError if there are less than three values.
242242
"""
243243
import pandas as pd
244-
from pandas.core.arrays import DatetimeArrayMixin, TimedeltaArrayMixin
245244

246245
if isinstance(index, ABCSeries):
247246
values = index._values
@@ -266,8 +265,7 @@ def infer_freq(index, warn=True):
266265
"type {type}".format(type=type(index)))
267266
index = index.values
268267

269-
if not isinstance(index, (DatetimeArrayMixin, TimedeltaArrayMixin,
270-
pd.DatetimeIndex)):
268+
if not isinstance(index, pd.DatetimeIndex):
271269
try:
272270
index = pd.DatetimeIndex(index)
273271
except AmbiguousTimeError:

0 commit comments

Comments
 (0)