def drop(self, fields):
    'drop fields from an MfList\n\n        Parameters\n        ----------\n        fields : list or set of field names to drop\n\n        Returns\n        -------\n        dropped : MfList without the dropped fields\n        '
    if (not isinstance(fields, list)):
        fields = [fields]
    names = [n for n in self.dtype.names if (n not in fields)]
    dtype = np.dtype([(k, d) for (k, d) in self.dtype.descr if (k not in fields)])
    spd = {}
    for (k, v) in self.data.items():
        newarr = np.array([self.data[k][n] for n in names]).transpose()
        newarr = np.array(list(map(tuple, newarr)), dtype=dtype).view(np.recarray)
        for n in dtype.names:
            newarr[n] = self.data[k][n]
        spd[k] = newarr
    return MfList(self.package, spd, dtype=dtype)
drop fields from an MfList

Parameters
----------
fields : list or set of field names to drop

Returns
-------
dropped : MfList without the dropped fields
def drop(self, fields):
    'drop fields from an MfList\n\n        Parameters\n        ----------\n        fields : list or set of field names to drop\n\n        Returns\n        -------\n        dropped : MfList without the dropped fields\n        '
    if (not isinstance(fields, list)):
        fields = [fields]
    names = [n for n in self.dtype.names if (n not in fields)]
    dtype = np.dtype([(k, d) for (k, d) in self.dtype.descr if (k not in fields)])
    spd = {}
    for (k, v) in self.data.items():
        newarr = np.array([self.data[k][n] for n in names]).transpose()
        newarr = np.array(list(map(tuple, newarr)), dtype=dtype).view(np.recarray)
        for n in dtype.names:
            newarr[n] = self.data[k][n]
        spd[k] = newarr
    return MfList(self.package, spd, dtype=dtype)