iode.Identities.series

Identities.series

series: Series

Create a pandas Series from the current Identities database. The index of the returned Series is build from the Identities names.

Examples

>>> from iode import SAMPLE_DATA_DIR, identities
>>> import pandas as pd
>>> identities.load(f"{SAMPLE_DATA_DIR}/fun.idt")
>>> len(identities)
48
>>> # Export the IODE Identities database as a pandas Series
>>> s = identities.series
>>> len(s)
48
>>> s.index.to_list()               
['AOUC', 'AOUC_', 'FLGR', ..., 'XW', 'Y', 'YSEFPR', 'YSFICR']
>>> identities["GAP_"]              
'100*((QAF_/Q_F)-1)' 
>>> s["GAP_"]                       
'100*((QAF_/Q_F)-1)' 
>>> identities["XTFP"]              
'grt TFPFHP_'
>>> s["XTFP"]                       
'grt TFPFHP_'
>>> # Export a subset of the IODE Identities database as a pandas Series
>>> s = identities["X*;*_"].series
>>> len(s)
15
>>> s.index.to_list()               
['AOUC_', 'GAP_', 'XEX', 'XNATY', ..., 'XTFP', 'XW']
>>> identities["GAP_"]              
'100*((QAF_/Q_F)-1)' 
>>> s["GAP_"]                       
'100*((QAF_/Q_F)-1)' 
>>> identities["XTFP"]              
'grt TFPFHP_'
>>> s["XTFP"]                       
'grt TFPFHP_'