Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
TomAugspurger opened this issue Jan 13, 2020 · 2 comments · Fixed by #31017
Closed

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

TomAugspurger opened this issue Jan 13, 2020 · 2 comments · Fixed by #31017
Labels
IO HDF5 read_hdf, HDFStore Regression Functionality that used to work in a prior pandas version
Milestone

Comments

@TomAugspurger
Copy link
Contributor

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).

@TomAugspurger TomAugspurger added Regression Functionality that used to work in a prior pandas version IO HDF5 read_hdf, HDFStore labels Jan 13, 2020
@TomAugspurger TomAugspurger added this to the 1.0.0 milestone Jan 13, 2020
@jbrockmendel
Copy link
Member

(if this was part of your tables cleanup).

This seems likely. AFAICT it was never used, so it got stripped out. Does it need to be restored?

@TomAugspurger
Copy link
Contributor Author

I think so. It's available by only public APIs and was used in downstream projects like Dask: https://travis-ci.org/dask/dask/jobs/636393300#L1315

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
IO HDF5 read_hdf, HDFStore Regression Functionality that used to work in a prior pandas version
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants