A Thursday 30 June 2011 04:25:38 Ben Elliston escrigué:
> Is it possible to rename a column in an existing table? I've dug
> through the documentation and not been able to find anything.
No, that's not implemented in PyTables. The name of the column exists
in two places: one in the HDF5 compoun
Hi Ben,
The column names are stored as attributes of the table which follow the
following pattern "FIELD_(\d+)_NAME", where the group is given as a
zero-index column number. (In ViTables, access properties for a table and
then look at the System Attributes tab.)
You might be able to just change
Is it possible to rename a column in an existing table? I've dug
through the documentation and not been able to find anything.
I'd rather not have to copy the data from the existing table into a
new one, as this will require compacting -- and the database is huge.
Thanks,
Ben
--