batch_key_replace#

astropop.py_utils.batch_key_replace(dictionary, key=None)#

Scan and replace {key} values in a dict by dict[‘key’] value.

Parameters:
dictionary: dict_like

Dictionary to replace the keys.

key: string or None, optional

The key to be replaced.

Notes

All the replacement is did inplace. Nothing is returned.