Fix Pandas while checking for errors
@@ -138,12 +138,13 @@ class PandasImporter(object):
__is_importing__ = False
def find_module(self, fullname, mpath=None):
- if 'pandas.' in fullname:
- return self
if fullname == 'pandas' and not self.__is_importing__:
return self
+ if fullname in ('pandas._libs.writers', 'pandas.io.msgpack._packer', 'pandas.io.sas._sas', 'pandas._libs.hashtable', 'pandas._libs.reshape', 'pandas._libs.tslib', 'pandas._libs.interval', 'pandas._libs.missing', 'pandas._libs.ops', 'pandas.io.msgpack._unpacker', 'pandas._libs.hashing', 'pandas._libs.join', 'pandas._libs.sparse', 'pandas._libs.indexing', 'pandas._libs.parsers', 'pandas._libs.algos', 'pandas._libs.reduction', 'pandas._libs.testing', 'pandas._libs.properties', 'pandas._libs.internals', 'pandas._libs.window', 'pandas._libs.json', 'pandas._libs.index', 'pandas._libs.groupby', 'pandas._libs.skiplist', 'pandas._libs.lib', 'pandas.util._move', 'pandas._libs.tslibs.ccalendar', 'pandas._libs.tslibs.conversion', 'pandas._libs.tslibs.fields', 'pandas._libs.tslibs.nattype', 'pandas._libs.tslibs.timedeltas', 'pandas._libs.tslibs.frequencies', 'pandas._libs.tslibs.resolution', 'pandas._libs.tslibs.offsets', 'pandas._libs.tslibs.np_datetime', 'pandas._libs.tslibs.period', 'pandas._libs.tslibs.timezones', 'pandas._libs.tslibs.strptime', 'pandas._libs.tslibs.parsing', 'pandas._libs.tslibs.timestamps'):
+ return self
+
return
def load_module(self, fullname):
