From 00b3d806f03150f765db2e6995d8acd170caa979 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 5 Mar 2019 19:36:34 +0100 Subject: [PATCH] Json, Numpy --- README.md | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index a8817f6..98d33fb 100644 --- a/README.md +++ b/README.md @@ -1136,12 +1136,6 @@ import json = json.loads() ``` -#### To preserve order use: -```python -from collections import OrderedDict - = json.loads(, object_pairs_hook=OrderedDict) -``` - ### Read Object from JSON File ```python def read_json_file(filename): @@ -1762,8 +1756,8 @@ import numpy as np ``` ```python - = .sum(axis=None) -indexes = .argmin(axis=None) + = .sum(axis) +indexes = .argmin(axis) ``` * **Shape is a tuple of dimension sizes.**