Short problems and solutions presented as brain teasers 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 for machine learning, applied statistics,
- [Instructor] The Brain Teasers file…in your Exercises file folder…is pre-populated with an import statement…and a series of questions or brain teasers.…I encourage you to read each brain teaser,…pause the video and try to develop…a solution on your own.…During this video, I'll be explaining the solution…to each one of the brain teasers.…Before you begin working on the brain teasers,…be sure to execute the cell…so that NumPy is properly imported.…
Our first brain teaser is,…what version of NumPy are you using?…The reason that this is important,…is that for a small number of functions,…the result that is returned is different,…depending upon the version of NumPy that you are using.…You can determine the version of NumPy…that you are using with this statement.…I'm recording this video during the summer of 2016,…and this is the most recent…version of NumPy that's available.…Note the Python comment,…that version is proceeded by two underscores,…and followed by two underscores.…
For our next brain teaser,…let's create an array with 10 elements,…
- 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.