Skip to content

Commit fdb17ca

Browse files
authored
Merge pull request pandas-dev#691 from shashank88/pandas_versioni
683: Fix arrays_to_mgr for pandas 0.23.4
2 parents a09db35 + e936002 commit fdb17ca

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

arctic/tickstore/tickstore.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,16 @@
88
import pandas as pd
99
import pymongo
1010
from bson.binary import Binary
11-
from pandas.core.frame import _arrays_to_mgr
1211
from pymongo import ReadPreference
1312
from pymongo.errors import OperationFailure
1413
from six import iteritems, string_types
1514

15+
try:
16+
from pandas.core.frame import _arrays_to_mgr
17+
except ImportError:
18+
# Deprecated since pandas 0.23.4
19+
from pandas.core.internals.construction import arrays_to_mgr as _arrays_to_mgr
20+
1621
try:
1722
from pandas.api.types import infer_dtype
1823
except ImportError:

0 commit comments

Comments
 (0)