spyql
spyql copied to clipboard
Extend Dictionaries
Add methods to NullSafeDict
to help working with dicts:
- [ ]
dict.with(k, v)
: returns dict with new/updated pair - [ ]
dict.drop(k1, k2, k3)
: return dicts without keys (does not fail if keys not found) - [ ]
dict.withKeyRename(old_key, new_key)
: return dict with key renamed
Add method to allow using dicts on CSVs, etc:
- [x]
row
/row()
: constructs a dict over_values
(and caches row to allow multiple calls). e.g.row->acolumn