[AstroPy] astropy.table remove/delete row?
Wed Jun 26 07:05:55 CDT 2013
Today I noticed the astropy.table class (
implements many functions for manipulating tables:
but it lacks similar functionality for row manipulation:
add_rows - although this is easily accomplished by iteration
I could try manipulating the table._data structure directly, but because
_data can be a numpy ndarray, dict, list or Table, it is not clear which
method I should use without inspecting the data structure.
I thought about slicing the table, but this would involve splitting then
reassembling the table just to remove one row. I considered creating a
mask, but this seems tedious (i.e. something that should be implemented
via. a remove_row(s) function)
Is a lack of a remove/delete_row(s) missing functionality or am I
missing something obvious?
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the AstroPy