You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
could DataTable.rows be documented as insertion ordered?
#6727
AFAICS, DataTable.rows is currently simply a dict and thereby (at least since Python version so-and-so... 3.7 IIRC) ensured to be ordered by insertion (i.e. by rows as added) – even if e.g. the sort order of the table is changed (in contrast to ordered_rows).
But it’s not really documented as such and thus this could be merely an implementation detail that may change any version.
Could it be officially made ordered as the rows were added? Not super important, but would sometimes perhaps be helpful (I have e.g. a use case right now).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Hey @willmcgugan.
AFAICS,
DataTable.rowsis currently simply adictand thereby (at least since Python version so-and-so... 3.7 IIRC) ensured to be ordered by insertion (i.e. by rows as added) – even if e.g. the sort order of the table is changed (in contrast toordered_rows).But it’s not really documented as such and thus this could be merely an implementation detail that may change any version.
Could it be officially made ordered as the rows were added? Not super important, but would sometimes perhaps be helpful (I have e.g. a use case right now).
Cheers,
Chris.
All reactions