Eric Leschinskion Stack Overflow • Recommends
On “Get the first character of the first string in a list?”
…ay0:1
'b'
>>> myarray0-1
'h'
>>> myarray01:3
'la'
Numpy operations are very different than python list operations.
Python has list slicing, indexing and subsetting. Numpy has masking, slicing, subsetting, indexing.
These two videos cleared things up for me.
"Losing your Loops, Fast Numerical Computing with NumPy" by PyCon 2015:
link to this video
"NumPy Beginner | SciPy 2016 Tutorial" by Alexandre Chabot LeClerc:
link to this video…