DEV Community

Onaolapo-11
Onaolapo-11

Posted on

NumPy array is the basic data structure in the NumPy library for Python

Day 60 [October 6, 2025]

I need to buckle down, as I'm still lagging on day 2's remaining goals, day 3 & 4 goals, "Day 3-4: Control structures (if-else, loops)", as well as day 5 (and 6) goals, "Day 5-6: Functions and modules", and Day 7 target (exercises) (Meta AI, personal communication, August 8, 2025). If I haven't covered this, I can't make progress on day 8 - 59 goals.

Goals:
As extracted from the 'Python for Software Development' textbook by Halvorsen (n.d.):

  • The New Age of Programming ✅
  • What is Python? ✅
  • Introduction to Python ✅
  • Interpreted vs. Compiled ✅
  • Python Packages ✅
  • Python Packages for Science and Numerical Computations ✅
  • Python Editors ✅
  • Python IDLE ✅
  • Visual Studio Code ✅
  • Variables ✅
  • Numbers ✅
  • Strings ✅
  • String Input✅
  • Built-in Functions✅
  • Python Standard Library✅
  • Using Python Libraries, Packages and Modules✅
  • Python Packages✅
  • Plotting in Python
  • Subplots
  • Exercises
  • If ... Else
  • Arrays
  • For Loops
  • Nested
  • For Loops
  • While Loops
  • Exercises
  • Creating Functions in Python - Introduction
  • Functions with multiple return values
  • Exercises
  • Creating Classes in Python
  • The init () Function
  • Exercises
  • Creating Python Modules
  • Exercises

Notes:
'Python for Software Development' textbook by Halvorsen (n.d.):

Recalling from Day 59, although numpy.arange() function and Python's built-in range() function have similarities, they differ in the sense that, unlike the range() function which returns a list, numpy.arange() function returns a NumPy array (geeksforgeeks, 2025).

What's a NumPy array?
The formal name is ndarray (N-dimensional array) and it is the basic data structure in the NumPy library for Python (Google, 2025). It has the following important characteristics (Google, 2025):

  • Homogeneity of data type
  • Multidimensionality
  • Fixed number of elements, unless you create a new array
  • Efficient operations for large datasets
  • Large pool of functions and methods for carrying various tasks as creating, sorting, reshaping, performing mathematical operations, and manipulating.

Summary:
NumPy array is the basic data structure in the NumPy library for Python.

References:

  1. geeksforgeeks. (2025, January 24). numpy.arange() in Python. https://www.geeksforgeeks.org/python/numpy-arrange-in-python/

  2. Google. (2025). Google Search with AI. [Large language model]. https://www.google.com/search?sca_esv=bbe3debe957613b7&sxsrf=AE3TifPx1f9lskrfiEjovOPtHQkHyMYLLw:1759758421482&q=What%27s+a+numpy+array+in+python&sa=X&ved=2ahUKEwiWl-n82o-QAxUgZ0EAHfE9CxwQ1QJ6BAhKEAE&biw=1316&bih=649&dpr=1

  3. Halvorsen, H. (n.d.)._ Python_. https://halvorsen.blog/documents/programming/python/python.php#python4

Top comments (0)