Skip to content

Commit

Permalink
REF: Solve circular dependency with python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
toobaz committed Dec 14, 2017
1 parent 95e3524 commit dcf0136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas/_libs/src/inference.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ from tslibs.conversion cimport convert_to_tsobject
from tslibs.timedeltas cimport convert_to_timedelta64
from tslibs.timezones cimport get_timezone
from datetime import datetime, timedelta
from pandas.core.dtypes.cast import construct_1d_array_from_listlike

iNaT = util.get_nat()

Expand Down Expand Up @@ -351,6 +350,7 @@ def infer_dtype(object value, bint skipna=False):
else:
if not isinstance(value, list):
value = list(value)
from pandas.core.dtypes.cast import construct_1d_array_from_listlike
values = construct_1d_array_from_listlike(value)

values = getattr(values, 'values', values)
Expand Down

0 comments on commit dcf0136

Please sign in to comment.