If you want to take elements from a NumPy array at specific indices, use numpy.take.
numpy.take
My previous tips on NumPy.
array-to-latex: Turn a Numpy Array into Latex
unyt: Manipulate and Convert Units in NumPy Arrays
Turn a pandas Series into a NumPy Array
Your email address will not be published. Required fields are marked *
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Δ