Learn how structured arrays and record arrays main NumPy’s constraints upon fixed sized elements in this video tutorial by Charles Kelly. These are explained in the context of computer science and data science to technologists and students in preparation
- View Offline
- Exercise Files
- [Instructor] When you load the structured and record…arrays files from the exercises file folders,…it is populated with an import statement…and a data definition for a structured array.…In this case, the data definition…describes an array that has four fields.…The first is a string, which is named name,…the second is a floating point, named height,…the third is a floating point, named weight,…and the fourth is an integer named age.…
Before we use this notebook, we'll access the Cell menu…and run all the cells in this array.…Arrays are the fundamental data structured used within NumPy…and each element within an array…has the same amount of space within machine memory.…Part of the efficiency and speed that NumPy delivers,…is achieved by relying upon the fact that each element…in an array uses the same amount of space within memory.…So far in this course, all the data types that we have used…have been numeric, integers, floating point numbers,…or complex numbers.…
It is also possible to create NumPy arrays…that contain complex data structures.…
- Using Jupyter Notebook
- Creating NumPy arrays from Python structures
- Slicing arrays
- Using Boolean masking and broadcasting techniques
- Plotting in Jupyter notebooks
- Joining and splitting arrays
- Rearranging array elements
- Creating universal functions
- Finding patterns
- Building magic squares and magic cubes with NumPy and Python
Skill Level Intermediate
2. Create NumPy Arrays
3. Index, Slice, and Iterate
4. Plots: Matplotlib and Pyplot
5. Manipulate Arrays
6. Short Examples
7. Extended Examples
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.