INNER CODE UNIT · Python
__repr__
guma44/GEOparse · src/GEOparse/GEOTypes.py:187
def __repr__(self):
return str("<%s: %s>" % (self.geotype, self.name))
class SimpleGEO(BaseGEO):
__metaclass__ = abc.ABCMeta
def __init__(self, name, metadata, table, columns):
"""Initialize simple GEO object.
Args:
name (:obj:`str`): Name of the object
metadata (:obj:`dict`): Metadata information
table (:obj:`pandas.DataFrame`): Table with the data from SOFT file
columns (:obj:`pandas.DataFrame`): Description of the columns,
number of columns, order and names represented as index
in this DataFrame has to be the same as table.columns.