【问题标题】:What does the PyTables warning "a closed node found in the registry" mean?PyTables 警告“在注册表中找到一个关闭的节点”是什么意思?
【发布时间】:2020-08-31 05:09:24
【问题描述】:

使用 pandas.to_hdf 函数将数据保存到 HDF5 文件时,我收到以下警告:

C:\{my path to conda environment}\lib\site-packages\tables\file.py:426: 
UserWarning: a closed node found in the registry: ``/{my object key}/meta/{my column name}/meta/_i_table``
  warnings.warn("a closed node found in the registry: "

我无法通过谷歌搜索此警告的含义,并且查看 the relevant PyTables docs 并没有帮助。

有人有想法吗?

详情:

  • Python 3.8.2、PyTables 3.6.1、熊猫 1.0.3
  • 保存的数据似乎没问题。
  • 我正在调用 pandas.to_hdf 函数,如下所示:to_hdf(filename, key, mode = mode, complib='blosc', format = 'table', append = True),其中模式为“w”或“a”(两种情况下都会引发警告)。

【问题讨论】:

  • 我对 python 3.9.8、Tables 3.6.1 和 pandas 1.3.3 有同样的想法

标签: python pandas warnings hdf5 pytables


【解决方案1】:

尽管如此,我还是设法通过从以下位置安装表 3.6.1 来克服警告: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pytables 使用 python 3.9 的 +gpl 版本。

我不知道这个选择的细节,我无法证明它为什么起作用。

【讨论】:

    最近更新 更多