Skip to content

export to csv of struct array fails with AttributeError #98

Description

@anntzer

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions