@classmethod
def FromDataFrame(cls, frame, *arg, **kwarg):
    """
		Create a new OMX file from a `pandas.DataFrame`.
		
		Will create a new OMX file containing only lookups (no matrix data).
		The shape of the OMX will be set as square, with size equal to the 
		number of rows in the frame.
		
		Parameters
		----------
		frame : pandas.DataFrame
			Import this data.
		"""
    self = cls(*arg, **kwarg)
    self.shape = len(frame), len(frame)
    for columnname in frame.columns:
        self.add_lookup(columnname, frame[columnname].values)
    return self
