mongoframes/frames.py
def _path_to_value(cls, path, parent_dict):
        """Return a value from a dictionary at the given path"""
        keys = cls._path_to_keys(path)

        # Traverse to the tip of the path
        child_dict = parent_dict
        for key in keys[:-1]:
            child_dict = child_dict.get(key)
            if child_dict is None:
                return

        return child_dict.get(keys[-1])
Return a value from a dictionary at the given path
Return a value from a dictionary at the given path
Return a value from a dictionary at the given path
def _path_to_value(cls, path, parent_dict):
        keys = cls._path_to_keys(path)
        child_dict = parent_dict
        for key in keys[:-1]:
            child_dict = child_dict.get(key)
            if child_dict is None:
                return
        return child_dict.get(keys[-1])
def _path_to_value ( cls , path , parent_dict ) : keys = cls . _path_to_keys ( path ) child_dict = parent_dict for key in keys [ : - 1 ] : child_dict = child_dict . get ( key ) if child_dict is None : return return child_dict . get ( keys [ - 1 ] )
Return a value from a dictionary at the given path
Return a value from a dictionary at the given path
"""Return a value from a dictionary at the given path""" # Traverse to the tip of the path
cls
path
parent_dict