Python Turn Numpy Array Into Arraylist Vs Hashmap