I have a dictionary with datetime months as keys and lists of floats as values, and I'm trying to convert the lists into numpy arrays and update the dictionary. This is my code so far:
def convert_to_array(dictionary):
'''Converts lists of values in a dictionary to numpy arrays'''
rv = {}
for v in rv.values():
v = array(v)