INNER CODE UNIT · Python
SimpleGEO
guma44/GEOparse · src/GEOparse/GEOTypes.py:191
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.
Raises:
:obj:`ValueError`: Table should be a DataFrame
:obj:`ValueError`: Columns' description should be a DataFrame
:obj:`DataIncompatibilityException`: Columns are wrong