Learn to use NumPy function including linspace, zeros, ones, with NumPy data types in this video tutorial by Charles Kelly and Lynda.com (a LinkedIn company). These are explained in the context of computer science and data science to technologists and stu
- [Narrator] In this video, I'll discuss several…NumPy functions that are useful…for instantiating arrays with one or more integers.…The linspace function creates a group of integers…that are evenly or linearly spaced.…The zeros functions create an array…where every element is set to zero.…And the ones function creates an array…where every element is set to one.…I'll begin by renaming NumPy's namespace.…linspace is an intrinsic function.…
It creates an array whose elements…are evenly spaced over a specified interval.…Calls to linspace contain between two and six parameters.…You can obtain more information…about the linspace function from this URL.…The name of the function is numpy.linspace.…We're using np instead of numpy.…The signature for the function indicates…that it contains up to six parameters.…The start and the stop parameters are mandatory.…
The other four are optional.…Note that even though these are mandatory parameters,…they're not contained in square brackets.…As our first example of the linspace function,…
- 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.