NumPy Basic Indexing & Reshaping Practice - Learn NumPy Series

preview_player
Показать описание
This video is apart of a full NumPy Course - Start here:

In this one we'll get some more practice reshaping and indexing arrays.

#Python #NumPy #Tutorial

Join The Socials -- Picking Shoutouts Across YouTube, Insta, FB, and Twitter!

Thanks so much for the continued support! Almost to 5k subscribers! How awesome. Thank you all.

*****************************************************************
Full code from the video:
import numpy as np

print(array_b)

array_c = array_a.T
print(array_c.T)

print(array_c[0], array_c[1])

print(array_a[-1,-1])

Packages (& Versions) used in this video:
Python 3.7
NumPy 1.17

*****************************************************************
Code from this tutorial and all my others can be found on my GitHub:

Check out my website:

If you liked the video - please hit the like button. It means more than you know. Thanks for watching and thank you for all your support!!

Always looking for suggestions on what video to make next -- leave me a comment with your project! Happy Coding!
Рекомендации по теме
Комментарии
Автор

I'm glad I found a gem of a channel.

leonquadros
Автор

to return two rows you could use a range, for example: array_a[range(2)]

abdremo
Автор

ans:
1. print(array[:, -3])
2. print(array[2, 1])

shiili