简体   繁体   中英

HDFStore initialization error: name is not defined

When I initialize HDFStore

import numpy as np
import pandas as pd    
hdf = pd.HDFStore('polar.h5')

I see an error in flavor.py:

NameError, name '_conv_python_to_python' is not defined

在此处输入图片说明

I am using anaconda and pandas does work for dataframe stuff

I resolved it by adding:

import h5py
from pandas import HDFStore,DataFrame

This is actually not a real problem. I checked Breakpoint: "All Exceptions" and it paused here, simply unchecking it resolves the issue. You can continue from this error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM