Re:Box: Python dictionaries with recursive dot notation access
by an_hn_reader on Friday May 05, 2017 @12:12PM
(#14274519)
I like using NamedTuple for dot notation access, it's a good middle ground between dicts and custom classes.
Pandas must use something similar under the hood to provide dot notation access to columns. I wish h5py did the same for hdf5 objects. In py3, I find myself needing to type list(X.items()) and then list(X['Y'].items()) and so on when I'm exploring a new dataset... fairly awkward for interactive use.
Pandas must use something similar under the hood to provide dot notation access to columns. I wish h5py did the same for hdf5 objects. In py3, I find myself needing to type list(X.items()) and then list(X['Y'].items()) and so on when I'm exploring a new dataset... fairly awkward for interactive use.