iode.Comments.i

property Comments.i: PositionalIndexer

Allow to select the ith comment in the database.

Examples

>>> from iode import comments, SAMPLE_DATA_DIR
>>> comments.load(f"{SAMPLE_DATA_DIR}/fun.cmt")
Loading .../fun.cmt
317 objects loaded 
>>> # get the first comment
>>> comments.i[0]
'Ondernemingen: ontvangen kapitaaloverdrachten.'
>>> # get the last comment
>>> comments.i[-1]
'Marktsector (ondernemingen en zelfstandigen): loonquote\n(gemiddelde 1954-94).'
>>> # update first comment
>>> comments.i[0] = 'New Comment'
>>> comments.i[0]
'New Comment'
>>> # update last comment
>>> comments.i[-1] = 'New Comment'
>>> comments.i[-1]
'New Comment'