PyTables 警告"a closed node found in the registry"是什么意思?



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

C:{my path to conda environment}libsite-packagestablesfile.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: "

我无法谷歌这个警告可能意味着什么,查看相关的 PyTables 文档也无济于事。

有人有想法吗?

详:

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

尽管它的价值很高,但我设法通过从以下位置安装表 3.6.1 来克服警告: https://www.lfd.uci.edu/~gohlke/pythonlibs/#pytables 使用 Python 3.9 的 +GPL 版本。

无论如何,我不知道这个选择的细节,我无法证明它为什么有效。

我观察到了同样的问题。对我来说,数据帧中的category列会发生这种情况(有时,我看不到逻辑(。

溶液:

  • category列转换为object
  • 运行to_hdf(...)

相关内容

最新更新