You have a 0-dimensional array of dtype object. Creating this array in general is probably a mistake, but if you still want to use it, you can extract the dictionary by indexing the array with a tuple without indexes:
x[()]
or by calling the array item method:
x.item()
source share