python-3.xpandashdfstore

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

enter image description here

I am using anaconda and pandas does work for dataframe stuff


Solution

  • I resolved it by adding:

    import h5py
    from pandas import HDFStore,DataFrame