Skip to content
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

export to csv of struct array fails with AttributeError #98

Open
anntzer opened this issue Mar 13, 2020 · 0 comments
Open

export to csv of struct array fails with AttributeError #98

anntzer opened this issue Mar 13, 2020 · 0 comments

Comments

@anntzer
Copy link

anntzer commented Mar 13, 2020

First, thanks for the nice piece of software :) still, there's an issue...

Create the following hdf5 file:

with h5py.File("test.h5", "w") as f:
    f["foo"] = np.array([(1, 2), (3, 4)], [("a", int), ("b", float)])

open it with vitables and try to export the "foo" dataset to csv.

One gets

2020-03-13 11:42:39,207 - vitables - ERROR -   File ".../lib/python3.8/site-packages/vitables/csv/export_csv.py", line 247, in export
    if self._try_exporting_dataframe(leaf):
'ExportToCSV' object has no attribute '_try_exporting_dataframe'

and indeed, checking the export_csv.py source file, one sees that the _try_exporting_dataframe method has been commented out.

Fhns added a commit to spgilm/ViTables that referenced this issue Apr 28, 2021
Issue uvemas#98 Fixed - Fixing the exporting to csv error (from ...vttables import df_model -> from vitables.vttables import df_model)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant