Skip to content

AttributeError: 'FrameFixed' object has no attribute 'format_type' on 1.0.0rc0 #30962

Closed
@TomAugspurger

Description

@TomAugspurger
import pandas as pd


df = pd.DataFrame({"A": [1, 2]})
df.to_hdf("foo.h5", "foo")

with pd.HDFStore("foo.h5") as hdf:
    for key in hdf.keys():
        storer = hdf.get_storer(key)
        print(type(storer), storer.format_type)

On 0.25.3, we have

<class 'pandas.io.pytables.FrameFixed'> fixed

On 1.0.0rc0

Traceback (most recent call last):
  File "bug.py", line 10, in <module>
    print(storer.format_type)
AttributeError: 'FrameFixed' object has no attribute 'format_type'

Didn't see anything about this in the release notes. cc @jbrockmendel (if this was part of your tables cleanup).

Metadata

Metadata

Assignees

No one assigned

    Labels

    IO HDF5read_hdf, HDFStoreRegressionFunctionality that used to work in a prior pandas version

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions