Skip to content

Commit e9a0643

Browse files
authored
docs (ai/numpy): Fix typo in dtype for numpy arrays & Updates Py version (#3123)
* Fix typo in dtype for numpy arrays in README * Updated Python version requirement from 3.8 to >= 3.9 for virtual environment setup. * Remove link to Jupyter Notebooks article
1 parent 9c0c788 commit e9a0643

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

subjects/ai/numpy/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ We suggest utilizing:
3737
- Choose a virtual environment that aligns with your familiarity. Common choices among Data Science practitioners are `virtualenv` and `conda`.
3838
- Install the most recent versions of the required libraries to ensure compatibility and access to the latest features
3939

40-
1. Begin by creating a virtual environment named `ex00` that utilizes Python version `3.8`. Install the required libraries `numpy` and `jupyter`. Save the installed packages to a file named `requirements.txt`, located in the current directory.
40+
1. Begin by creating a virtual environment named `ex00` that utilizes Python version `>= 3.9`. Install the required libraries `numpy` and `jupyter`. Save the installed packages to a file named `requirements.txt`, located in the current directory.
4141

4242
2. Launch a `jupyter` notebook or `JupyterLab` on port `8891`. Create a new notebook named `Notebook_ex00`.
4343

@@ -52,7 +52,6 @@ We suggest utilizing:
5252
- [jupyter](https://jupyter.org/)
5353
- [numpy](https://numpy.org/)
5454
- [Jupyter Notebook Shortcuts](https://towardsdatascience.com/jypyter-notebook-shortcuts-bf0101a98330)
55-
- [Why You Should be Using Jupyter Notebooks](https://odsc.medium.com/why-you-should-be-using-jupyter-notebooks-ea2e568c59f2)
5655

5756
---
5857

@@ -193,8 +192,8 @@ The goal of this exercise is to learn to access values of n-dimensional arrays e
193192
3. Using **broadcasting** create an output matrix based on the following two arrays:
194193

195194
```python
196-
array_1 = np.array([1,2,3,4,5], dytpe=np.int8)
197-
array_2 = np.array([1,2,3], dytpe=np.int8)
195+
array_1 = np.array([1,2,3,4,5], dtype=np.int8)
196+
array_2 = np.array([1,2,3], dtype=np.int8)
198197
```
199198

200199
Expected output:

0 commit comments

Comments
 (0)