
Public Member Functions | |
| def | __init__ (self, value=None, delimiter=':') |
| def | __setitem__ (self, key, value) |
| def | as_dict (self) |
Public Member Functions inherited from rosbag_pandas.flatdict.FlatDict | |
| def | __contains__ (self, key) |
| def | __delitem__ (self, key) |
| def | __eq__ (self, other) |
| def | __getitem__ (self, key) |
| def | __init__ (self, value=None, delimiter=':') |
| def | __iter__ (self) |
| def | __len__ (self) |
| def | __ne__ (self, other) |
| def | __reduce__ (self) |
| def | __repr__ (self) |
| def | __setitem__ (self, key, value) |
| def | __str__ (self) |
| def | as_dict (self) |
| def | clear (self) |
| def | copy (self) |
| def | get (self, key, d=None) |
| def | items (self) |
| def | iteritems (self) |
| def | iterkeys (self) |
| def | itervalues (self) |
| def | keys (self) |
| def | pop (self, key, default=NO_DEFAULT) |
| def | set_delimiter (self, delimiter) |
| def | setdefault (self, key, default) |
| def | update (self, other=None, kwargs) |
| def | values (self) |
Public Attributes | |
| original_type | |
Private Member Functions | |
| def | _child_as_list (self, pk, ck) |
Static Private Attributes | |
| tuple | _ARRAYS = (list, set, tuple) |
| tuple | _COERCE = (list, tuple, set, dict, FlatDict) |
Like :class:`~flatdict.FlatDict` but also coerces lists and sets to child-dict instances with the offset as the key. Alternative to the implementation added in v1.2 of FlatDict.
Definition at line 373 of file flatdict.py.
| def rosbag_pandas.flatdict.FlatterDict.__init__ | ( | self, | |
value = None, |
|||
delimiter = ':' |
|||
| ) |
Definition at line 382 of file flatdict.py.
| def rosbag_pandas.flatdict.FlatterDict.__setitem__ | ( | self, | |
| key, | |||
| value | |||
| ) |
Assign the value to the key, dynamically building nested FlatDict items where appropriate. :param mixed key: The key for the item :param mixed value: The value for the item :raises: TypeError
Definition at line 388 of file flatdict.py.
|
private |
Returns a list of values from the child FlatterDict instance with string based integer keys. :param str pk: The parent key :param str ck: The child key :rtype: list
Definition at line 450 of file flatdict.py.
| def rosbag_pandas.flatdict.FlatterDict.as_dict | ( | self | ) |
Return the :class:`~flatdict.FlatterDict` as a nested :class:`dict`. :rtype: dict
Definition at line 420 of file flatdict.py.
|
staticprivate |
Definition at line 380 of file flatdict.py.
Definition at line 379 of file flatdict.py.
| rosbag_pandas.flatdict.FlatterDict.original_type |
Definition at line 383 of file flatdict.py.