chore(i8n,learn): processed translations
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
15047f2d90
commit
e5c44a3ae5
@ -1,5 +1,6 @@
|
||||
---
|
||||
id: 5e9a0a8e09c5df3cc3600ed4
|
||||
title: 'Accessing and Changing Elements, Rows, Columns'
|
||||
challengeType: 11
|
||||
videoId: v-7Y7koJ_N0
|
||||
dashedName: accessing-and-changing-elements-rows-columns
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
id: 5e9a0a8e09c5df3cc3600ed3
|
||||
title: Basics of Numpy
|
||||
challengeType: 11
|
||||
videoId: f9QrZrKQMLI
|
||||
dashedName: basics-of-numpy
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
id: 5e9a0a8e09c5df3cc3600ed7
|
||||
title: Copying Arrays Warning
|
||||
challengeType: 11
|
||||
videoId: iIoQ0_L0GvA
|
||||
dashedName: copying-arrays-warning
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
id: 5e9a0a8e09c5df3cc3600ed6
|
||||
title: Initialize Array Problem
|
||||
challengeType: 11
|
||||
videoId: 0jGfH8BPfOk
|
||||
dashedName: initialize-array-problem
|
||||
@ -12,20 +13,33 @@ dashedName: initialize-array-problem
|
||||
What is another way to produce the following array?
|
||||
|
||||
```py
|
||||
[[1. 1. 1. 1. 1.]
|
||||
[1. 0. 0. 0. 1.]
|
||||
[1. 0. 9. 0. 1.]
|
||||
[1. 0. 0. 0. 1.]
|
||||
[1. 1. 1. 1. 1.]]
|
||||
[[0. 0. 0. 0. 0. 0. 0.]
|
||||
[0. 1. 1. 1. 1. 1. 0.]
|
||||
[0. 1. 1. 1. 1. 1. 0.]
|
||||
[0. 1. 1. 5. 1. 1. 0.]
|
||||
[0. 1. 1. 1. 1. 1. 0.]
|
||||
[0. 1. 1. 1. 1. 1. 0.]
|
||||
[0. 0. 0. 0. 0. 0. 0.]]
|
||||
```
|
||||
|
||||
## --answers--
|
||||
|
||||
```py
|
||||
output = np.ones((5, 5))
|
||||
output = np.ones((7, 7))
|
||||
|
||||
z = np.zeros((3, 3))
|
||||
z[1, 1] = 9
|
||||
z = np.zeros((5, 5))
|
||||
z[2, 2] = 5
|
||||
|
||||
output[1:1, -1:-1] = z
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```py
|
||||
output = np.zeros((7,7))
|
||||
|
||||
z = np.ones((5, 5))
|
||||
z[2, 2] = 5
|
||||
|
||||
output[1:-1, 1:-1] = z
|
||||
```
|
||||
@ -33,26 +47,15 @@ output[1:-1, 1:-1] = z
|
||||
---
|
||||
|
||||
```py
|
||||
output = np.ones((5, 5))
|
||||
output = np.ones((7, 7))
|
||||
|
||||
z = np.zeros((3, 3))
|
||||
z[1, 1] = 9
|
||||
z = np.zeros((5, 5))
|
||||
z[3, 3] = 5
|
||||
|
||||
output[1:3, 1:3] = z
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
```py
|
||||
output = np.ones((5, 5))
|
||||
|
||||
z = np.zeros((3, 3))
|
||||
z[1, 1] = 9
|
||||
|
||||
output[4:1, 4:1] = z
|
||||
output[1:-1, 1:-1] = z
|
||||
```
|
||||
|
||||
## --video-solution--
|
||||
|
||||
1
|
||||
2
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
id: 5e9a0a8e09c5df3cc3600ed5
|
||||
title: Initializing Different Arrays
|
||||
challengeType: 11
|
||||
videoId: CEykdsKT4U4
|
||||
dashedName: initializing-different-arrays
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
id: 5e9a0a8e09c5df3cc3600eda
|
||||
title: Loading Data and Advanced Indexing
|
||||
challengeType: 11
|
||||
videoId: tUdBZ7pF8Jg
|
||||
dashedName: loading-data-and-advanced-indexing
|
||||
@ -11,10 +12,10 @@ dashedName: loading-data-and-advanced-indexing
|
||||
|
||||
Given a file named `data.txt` with these contents:
|
||||
|
||||
```
|
||||
<pre>
|
||||
29,97,32,100,45
|
||||
15,88,5,75,22
|
||||
```
|
||||
</pre>
|
||||
|
||||
What code would produce the following array?
|
||||
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
id: 5e9a0a8e09c5df3cc3600ed8
|
||||
title: Mathematics
|
||||
challengeType: 11
|
||||
videoId: 7txegvyhtVk
|
||||
dashedName: mathematics
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
id: 5e9a0a8e09c5df3cc3600ed9
|
||||
title: Reorganizing Arrays
|
||||
challengeType: 11
|
||||
videoId: VNWAQbEM-C8
|
||||
dashedName: reorganizing-arrays
|
||||
|
@ -1,5 +1,6 @@
|
||||
---
|
||||
id: 5e9a0a8e09c5df3cc3600ed2
|
||||
title: What is NumPy
|
||||
challengeType: 11
|
||||
videoId: 5Nwfs5Ej85Q
|
||||
dashedName: what-is-numpy
|
||||
|
Reference in New Issue
Block a user