Commit Graph

265 Commits

Author SHA1 Message Date
Nicolas P. Rougier
a497e655a8
Merge pull request #169 from mgoloshchapov/patch-3
Update 100_Numpy_exercises_with_solutions.md
2022-01-31 19:03:50 +01:00
Mikhail Goloshchapov
49e70fbc00
Update 100_Numpy_exercises_with_solutions.md
Replaced np.array([[0,1],[1,0]]) with np.eye(2) in Task #21
2022-01-29 17:18:40 +03:00
Nicolas P. Rougier
9802377336
Merge pull request #165 from Jeff1999/master
Update Q.75, 76, 81, 84, 85, 87
2022-01-03 10:26:04 +01:00
Jeff1999
e72a3d9f35 Update Q.75, 76, 81, 84, 85, 87
Update alternative solutions with sliding_window_view (NumPy >= 1.20.0).
2021-12-17 16:41:42 +08:00
Nicolas P. Rougier
3597f1191c
Merge pull request #155 from Jeff1999/master
alternative solution for Q.82
2021-07-27 07:48:55 +02:00
Jeff1999
731d575569 alternative solution for Q.82 2021-07-27 10:11:29 +08:00
Nicolas P. Rougier
c3497d3bc3
Merge pull request #152 from FirefoxMetzger/additional_solution
alternative solution for no. 87
2021-06-14 08:46:39 +02:00
Sebastian Wallkötter
72fc6399b2 alternative solution for no. 87 2021-06-13 16:20:39 +02:00
Nicolas P. Rougier
0087eccf20
Merge pull request #151 from bassbone/master
Add difficulty
2021-06-13 10:01:48 +02:00
bassbone
8603114b95 add difficulty 2021-06-11 23:14:29 +09:00
Nicolas P. Rougier
22f47a6e0b
Merge pull request #148 from Sword-holder/master
Fix solution of question 76.
2021-04-26 09:31:08 +02:00
Sword-holder
86e24f1da9 Fix solution of question 76. 2021-04-21 16:11:23 +08:00
Nicolas P. Rougier
3135668de3
Merge pull request #146 from fraterenz/Q37-fraterenz
Updated question 37
2021-04-15 11:02:14 +02:00
Francesco Terenzi
025845ff5c Updated question 37, keep previous solution for reference 2021-04-09 10:50:11 +02:00
Francesco Terenzi
a7c84d5fed Updated question 37 2021-04-08 20:51:14 +02:00
Nicolas P. Rougier
97b01d144d
Merge pull request #145 from MarkSetchell/Q66-Setchell
Updated question 66
2021-03-29 07:36:22 +02:00
Mark Setchell
1f3c0025e8 Updated question 66 2021-03-22 10:02:11 +00:00
Nicolas P. Rougier
a548e75832
Merge pull request #144 from Fisher-Wang/add-another-solution-of-#66
Give another solution of problem #66.
2021-03-12 19:12:42 +01:00
Fisher Wang
589e79f78a some refinement 2021-03-12 22:29:45 +08:00
Fisher Wang
8527c7c83c replace the solution of problem 66 and set the difficulty 2021-03-11 17:10:53 +08:00
Fisher Wang
0d8a4a025b test 2021-03-09 22:01:03 +08:00
Fisher Wang
d931b008a3 Give another solution of problem #66, and fix the old solution as #142 did 2021-03-09 21:42:18 +08:00
Nicolas P. Rougier
7a830af4b7
Merge pull request #142 from artfintl/master
Fix solution of #66
2021-02-18 12:43:51 +01:00
artfintl
fb03972f0d
Update 100_Numpy_exercises_with_solutions.md 2021-02-18 16:09:04 +08:00
artfintl
b38b0c2889
Update 100_Numpy_exercises_with_solutions.md 2021-02-10 14:24:03 +08:00
Nicolas P. Rougier
93bb2f70a2
Merge pull request #138 from madeirak/master
modification of question No.74
2021-01-05 09:43:35 +01:00
madeirak
8f73b3a480 Update exercises100.ktx 2021-01-04 17:29:28 +08:00
madeirak
61c7320733 modification
:)
2021-01-04 17:01:42 +08:00
Nicolas P. Rougier
711a091779
Merge pull request #134 from poedator/patch-4
upd example in a49
2020-10-26 09:04:42 +01:00
Poedator
95777749d7
upd example in a49
with default threshold=1000 [reference](551773f27c/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
Nicolas P. Rougier
49ea7ffd2b
Merge pull request #132 from poedator/patch-2
answer 35: delete `C = np.ones(3)*3`
2020-10-01 10:42:35 +02:00
Nicolas P. Rougier
4d3e8118bc
Merge pull request #131 from poedator/patch-1
fix deprecated type definition.
2020-10-01 10:40:54 +02: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
Nicolas P. Rougier
56e31a9843 Updated files 2020-07-01 10:19:32 +02:00
Nicolas P. Rougier
4a191c2c96
Merge pull request #128 from Jeff1999/patch-1
Fix Q.49
2020-07-01 10:18:35 +02:00
Yifan
4c9a228d49
Fix Q.49
Before: `threshold=np.nan` 
After : `threshold=float("inf")`

`np.nan` may fail in latest version.
2020-07-01 08:53:43 +08:00
Nicolas P. Rougier
c889812457
Merge pull request #124 from acharles7/Q25-Enhancement
Q25 minor changes
2020-06-15 07:21:35 +02:00
Charles
a683e7a014 Q25 minor changes 2020-06-09 14:07:54 -07:00
Nicolas P. Rougier
6b66e4f4a2
Merge pull request #123 from acharles7/alternate-Q16
Q16 Alternate Solution
2020-06-09 12:26:48 +02:00
Charles
b2a4a9e819 Q16 Alternate Solution 2020-06-03 14:58:44 -07:00
Nicolas P. Rougier
df801f8cbc
Merge pull request #122 from acharles7/enhancement
Q29 alternate solution
2020-06-02 11:07:32 +02:00
Charles
19af334130 changes for Q29 2020-05-28 15:35:39 -07:00
Nicolas P. Rougier
493c48d101
Merge pull request #117 from Haksell/suggest36
Add a solution to question 36
2020-05-04 07:57:24 +02:00
Nicolas P. Rougier
69109eeba5
Merge pull request #111 from Haksell/master
Fix answer 9
2020-05-03 10:12:08 +02:00
Nicolas P. Rougier
a9cd884249
Merge pull request #115 from Haksell/suggest33
Remove superfluous second argument in answer 33
2020-05-03 10:09:33 +02:00
Nicolas P. Rougier
f1712fab1b
Merge pull request #114 from Haksell/fix31
There was no context manager solution to go with the comment
2020-05-03 10:07:27 +02:00
Haksell
b8093ccf5c Add a solution to question 36 2020-05-02 10:08:01 +02:00
Haksell
6541c23057 Remove superfluous second argument in answer 33 2020-05-02 09:47:54 +02:00
Haksell
1ecdd416d3 There was no context manager solution to go with the comment 2020-05-02 09:39:51 +02:00