Commit Graph

245 Commits

Author SHA1 Message Date
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
Haksell
76d42c7795 revert to previous commit like a noob 2020-05-02 07:36:55 +02:00
Haksell
04f01dc162 Alternative answer to question 19 2020-05-02 07:30:46 +02:00
Haksell
55d37d7819 Fix answer 9 2020-05-02 07:23:15 +02:00
Nicolas P. Rougier
8c96897af3
Create FUNDING.yml 2020-04-06 16:11:55 +02:00
Nicolas P. Rougier
ae125e2592
Merge pull request #105 from zhukpm/i92
fix issue #92
2020-03-10 11:27:11 +01:00
Viacheslav Zhukov
c1ebd7f048 fix issue #92 2020-03-07 14:40:11 +03:00
Viacheslav Zhukov
a1cd0b0b78 Merge branch 'rougier-master' 2020-03-07 14:26:36 +03:00
Viacheslav Zhukov
2fab94d90e Merge branch 'master' of git://github.com/rougier/numpy-100 into rougier-master
# Conflicts:
#	100_Numpy_exercises.ipynb
#	100_Numpy_exercises.md
#	100_Numpy_exercises_no_solution.ipynb
#	100_Numpy_exercises_with_hint.ipynb
#	100_Numpy_exercises_with_hint.md
#	100_Numpy_exercises_with_hints.md
2020-03-07 14:26:14 +03:00
Nicolas P. Rougier
4e307ceca7
Merge pull request #104 from Corwin74/fix-ini
Fix error when running initialise.py on localized Windows
2020-03-06 13:17:29 +01:00
Corwin74
c6abf82c17 Fix error when running initialise.py on localized Windows 2020-02-29 21:05:15 +03:00
Nicolas P. Rougier
814170d1e2
Merge pull request #99 from martin-lee07/work
fix No.25
2020-02-18 15:11:45 +01:00
Your Name
c7cf6fd5f3 fix No.25 2020-02-12 18:09:05 +08:00
Nicolas P. Rougier
281ec484ae Merge pull request #89 from SebastianoF/dev
Programmatically create markdown and jupyter notebook from a share dictionary with questions and answers
2020-02-10 10:06:28 +01:00
SebastianoF
975f4860ec trailing File addressed 2020-01-21 14:09:14 +00:00
SebastianoF
8049fac912 source updated with latest merged PR and source re-created 2020-01-19 22:08:29 +00:00
SebastianoF
68d65958b8 conflicts resolved in temporary files 2020-01-19 22:06:39 +00:00
Viacheslav Zhukov
bf879890dd fix Issue #92 2020-01-19 00:06:26 +03:00
Nicolas P. Rougier
d6fbcab327
Merge pull request #90 from sam1902/master
Fix bug in solution 53 .ipynb & .md files
2020-01-18 08:18:53 +01:00
SebastianoF
ac0fbc1bce doc update and data_source removed 2020-01-12 14:29:05 +00:00
SebastianoF
3298f0258b rename and ktx source files added 2020-01-12 14:22:49 +00:00