#NEWLINE# def delete_column( rec , N ) : #NEWLINE# #INDENT# '\n    Delete a column from a records array.\n\n    Parameters\n    ----------\n    rec : recarray\n        Records array.\n    N : int\n        Column number to delete.\n\n    Returns\n    -------\n    new_rec : recarray\n        New records array with column deleted.\n\n    See Also\n    --------\n    reorder_columns : Delete multiple columns from a records array.\n\n    ' #NEWLINE# dtd = rec . dtype . descr #NEWLINE# dtd . pop ( N ) #NEWLINE# new_rec = np . empty ( rec . shape , dtd ) #NEWLINE# for n in new_rec . dtype . names : #NEWLINE# #INDENT# new_rec [ n ] = new_rec [ n ] #NEWLINE# #UNINDENT# return np . atleast_1d ( np . rec . array ( new_rec ) )