domi lizarraga

domi lizarraga

dominiclizarraga@hotmail.com

NumPy Arrays and Vectorization

Less than 1 minute to read

What I learned

  • How NumPy arrays differ from regular Python lists.
  • Why vectorized operations are preferable to manual loops.
  • How shape, dimensions, and data types affect an array.

Examples to add

  • Creating and reshaping an array.
  • Selecting rows and columns.
  • Comparing a Python loop with a vectorized operation.

Questions to revisit

  • When does broadcasting make an operation possible?
  • How should I choose an appropriate data type?