From 418d6d2a3de7b6bc0ab8aae2725b4b8ec2d7abf9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Mon, 28 Jan 2019 17:12:02 +0100 Subject: [PATCH] Numpy --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 9501e61..b7c3131 100644 --- a/README.md +++ b/README.md @@ -1676,16 +1676,16 @@ import numpy as np = np.random.randint(from_inclusive, to_exclusive, ) ``` -```python -first_column = [:, 0] # Or: [..., 0] -value = .min([axis]) -index = .argmin([axis]) -``` - ```python .shape = = .reshape() = np.broadcast_to(, ) +``` + +```python + = [:,0] # First column. + = .sum([]) # Axis is an index of dimension that gets collapsed. + = .argmin([]) # Returns index/es of smallest elements. = [filter_expression] ```