plan-be / iode

IODE integrates all the functionalities required for the construction and the handling of econometric models and for the management of statistical series.
https://iode.readthedocs.io/en/latest/
GNU General Public License v3.0
2 stars 1 forks source link

PYTHON: export B_DataCalcLst to Python #728

Closed alixdamman closed 1 day ago

alixdamman commented 1 day ago

Can be done already using Python set:

list1, list2 = lists[name_1], lists[name_2]

# union
list(set(list1) | set(list2))

# intersection
list(set(list1) & set(list2))

# difference
list(set(list1) - set(list2))