'Replace an element with a sublist

After running my code, it finally returned the list shown below:

[array([1.07154393, 0.56301803]), array([0.8709075 , 0.65386306]), array([0.8709075 , 0.67152833]), array([0.91407252, 0.53661559]), array([0.91407252, 0.75233522]), array([0.90546237, 0.53816734]), array([0.79872139, 0.58039901]), array([0.88308559, 0.55813344]), array([0.88308559, 0.46392293]), array([0.88782629, 0.47274579])]

I am wondering how to replace the element like 'array([1.07154393, 0.56301803])' with a sublist [1.07154393, 0.56301803]. Currently, I have no clues to fix it.

Could you please give me some adivces?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source