[MAINTENANCE] Handle numpy
deprecation warnings
#5615
Merged
numpy
deprecation warnings
#5615