convert_keys_to_int()
Convert dictionary keys to int.
Usage
convert_keys_to_int(input_dict)Parameters
input_dict: dict- Dictionary with keys that can be converted to integers.
Returns
dict- A new dictionary containing the original values and integer keys.