iode.Tables

class iode.Tables

IODE Tables database.

Parameters:
filepath: str, optional

file containing the IODE tables to load.

Returns:
Tables

Examples

>>> from iode import tables, SAMPLE_DATA_DIR
>>> tables.load(f"{SAMPLE_DATA_DIR}/fun.tbl")
>>> len(tables)
46
>>> tables          
Workspace: Tables
nb tables: 46
filename: ...\tests\data\fun.tbl

  name                             table titles
ANAKNFF     Déterminants de la croissance de K
ANAPRIX     Analyse des prix
C8_1        Déterminants de l'output potentiel
C8_10       Coin salarial parafiscal
C8_11       Propension moyenne à épargner
...         ...
UCLASS      Chômage classique
UY          Taux de chômage
XPC         Inflation: PC
XQBBP       Croissance
YDH         Tableau B-3. Revenu disponible des ménages à prix constant
Attributes:
filename: str
description: str

Methods

clear(self)

Delete all objects from the current database.

copy(self)

Create a copy of an IODE database.

copy_from(self, input_files[, objects_names])

Copy (a subset of) objects from the input file(s) 'input_files' into the current database.

get_names(self[, pattern])

Returns the list of objects names given a pattern.

is_copy_subset(self)

Whether or not the present object represents of a subset of a global IODE database and if the IODE objects of the subset represent deep copies of the IODE objects from the global IODE database.

is_subset(self)

Whether or not the present object represents a subset of a global IODE database.

load(self, filepath)

Load objects stored in file 'filepath' into the current database.

merge(self, other[, overwrite])

merge_from(self, input_file)

Merge all objects stored in the input file 'input_file' into the current database.

remove(self, names)

Delete the object(s) named 'names' from the current database.

rename(self, old_name, new_name)

Rename an object of the database.

save(self, filepath)

Save objects of the current database into the file 'filepath'.

search(self, pattern[, word, ...])

Return a list of all objects from the current database having a specific pattern in their names or LEC expression, comment...

__init__(*args, **kwargs)

Methods

__init__(*args, **kwargs)

clear(self)

Delete all objects from the current database.

copy(self)

Create a copy of an IODE database.

copy_from(self, input_files[, objects_names])

Copy (a subset of) objects from the input file(s) 'input_files' into the current database.

get_names(self[, pattern])

Returns the list of objects names given a pattern.

is_copy_subset(self)

Whether or not the present object represents of a subset of a global IODE database and if the IODE objects of the subset represent deep copies of the IODE objects from the global IODE database.

is_subset(self)

Whether or not the present object represents a subset of a global IODE database.

load(self, filepath)

Load objects stored in file 'filepath' into the current database.

merge(self, other[, overwrite])

merge_from(self, input_file)

Merge all objects stored in the input file 'input_file' into the current database.

remove(self, names)

Delete the object(s) named 'names' from the current database.

rename(self, old_name, new_name)

Rename an object of the database.

save(self, filepath)

Save objects of the current database into the file 'filepath'.

search(self, pattern[, word, ...])

Return a list of all objects from the current database having a specific pattern in their names or LEC expression, comment...

Attributes

description

description: str

filename

filename: str

names

names: List[str]