i have a dictionary with many keys and values. i want to pop out the values, which is a df, into separate variables to use later in the code. Is there a way to do this efficiently as at the moment i am using the pop method and repeating the code for each value which for big dictionaries is not efficient? below is the code i am using but looking to make it efficient.
my_dict = {'my number 1': df, 'my number 2': df1, 'my number 3': df2, 'my number 4': df3}
df= dict.pop('my number 1')
df1= dict.pop('my number 2')
df2= dict.pop('my number 3')
df3= dict.pop('my number 4')