Commit Graph
3 Commits
Author SHA1 Message Date
Poedator 95777749d7 upd example in a49
with default threshold=1000 [reference](https://github.com/numpy/numpy/blob/551773f27ccc955ce24d15eae84eed924250c573/numpy/core/arrayprint.py#L107-L110) 16x16 is always printed OK. A larger np.array is needed to illustrate the difference. Anything with over 1000 elements would do.
2020-10-17 20:46:27 +03:00
Poedator da29eb4cad answer 35: delete C = np.ones(3)*3
the line `C = np.ones(3)*3` is not needed in the answer. The variable C is not used at all.
2020-09-27 12:27:36 +03:00
Poedator 81e21a1f2c fix deprecated type definition.
Original answer triggered `c:\conda\envs\bigdata\lib\site-packages\ipykernel_launcher.py:5: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / '(1,)type'.`
New answer proposed per [Numpy docs](https://numpy.org/doc/stable/reference/generated/numpy.dtype.html)
2020-09-27 11:24:31 +03:00