def __init__(self, hdf_path): hdf_dir = os.path.dirname(hdf_path) if hdf_dir != '': mkdir_p(hdf_dir) self.hdf_store = pd.HDFStore(hdf_path)