This probably a very basic question but having difficulty search for the correct answer. I have a Python dictionary named raw_data and am extracting the keys separately as follows:
features = raw_data.keys()
A few specific elements of the keys need to be deleted.
del features[137]
del features[160]
del features[181]
The above code however throws an error:
'dict_keys' object doesn't support item deletion
What is the correct way to delete a key form dictionary keys object?