Browse Source

Json, Numpy

pull/28/head
Jure Šorn 6 years ago
parent
commit
00b3d806f0
1 changed files with 2 additions and 8 deletions
  1. 10
      README.md

10
README.md

@ -1136,12 +1136,6 @@ import json
<object> = json.loads(<str>) <object> = json.loads(<str>)
``` ```
#### To preserve order use:
```python
from collections import OrderedDict
<object> = json.loads(<str>, object_pairs_hook=OrderedDict)
```
### Read Object from JSON File ### Read Object from JSON File
```python ```python
def read_json_file(filename): def read_json_file(filename):
@ -1762,8 +1756,8 @@ import numpy as np
``` ```
```python ```python
<array> = <array>.sum(axis=None)
indexes = <array>.argmin(axis=None)
<array> = <array>.sum(axis)
indexes = <array>.argmin(axis)
``` ```
* **Shape is a tuple of dimension sizes.** * **Shape is a tuple of dimension sizes.**

Loading…
Cancel
Save