Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
201 commits
Select commit Hold shift + click to select a range
9d69e2f
Prepare the branch for work
callogan Dec 31, 2024
e07690f
[TASK] Quiz (https://github.com/SENATOROVAI/docs/issues/23)
callogan Jan 10, 2025
d71d589
Remove files with completed quizes
callogan Jan 15, 2025
8c2c13d
fixup! Prepare the branch for work
callogan Jan 16, 2025
79d0425
Amend intro_to_git.py
callogan Jan 16, 2025
ec79fe6
[TASK] STASH (https://github.com/SENATOROVAI/docs/issues/36)
callogan Feb 4, 2025
fba8477
[TASK] Commits (https://github.com/SENATOROVAI/docs/issues/21)
callogan Feb 5, 2025
01610d8
[TASK] issues (https://github.com/SENATOROVAI/docs/issues/19)
callogan Feb 7, 2025
6d34ebf
[TASK] Виртуальное окружение (https://github.com/SENATOROVAI/docs/iss…
callogan Feb 9, 2025
c7de30c
[TASK] Контрибьютинг в Open Source (https://github.com/SENATOROVAI/in…
callogan Feb 24, 2025
db10677
Delete hw.txt
ruslansenatorov Feb 26, 2025
daf6644
Update log.ipynb
callogan Mar 4, 2025
b812f21
[TASK] Cpython (https://github.com/SENATOROVAI/intro-cs/issues/4)
callogan Mar 4, 2025
14f77a8
Update log.ipynb (first group lesson)
callogan Mar 9, 2025
e92b780
Merge branch 'callogan' of https://github.com/callogan/Data-Science-F…
callogan Mar 9, 2025
01d98f8
Remove redundant files
callogan Mar 9, 2025
695fe33
fixup! Update log.ipynb (first group lesson)
callogan Mar 9, 2025
e0d1486
[TASK] Cpython (https://github.com/SENATOROVAI/intro-cs/issues/4)
callogan Mar 10, 2025
53a79b8
Update log.ipynb (second group lesson)
callogan Mar 14, 2025
332e7f0
Create demo files to practice making conventional commits (Related-To…
callogan Mar 19, 2025
d12eb03
fix(rounding): fix the logic of number rounding
callogan Mar 19, 2025
6496ed0
feat(reporting): add generate_report function
callogan Mar 20, 2025
4b65812
style: correct code formatting
callogan Mar 20, 2025
f12a1af
docs(generate_report): clarify the documentation
callogan Mar 20, 2025
f6cd98b
test(generate_report): add tests
callogan Mar 20, 2025
a25bff7
Revert redundant commits
callogan Mar 20, 2025
3e0831f
Update log.ipynb (third group lesson)
callogan Mar 23, 2025
89985ea
Clean code [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Mar 25, 2025
7e88c4d
Made easy [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Mar 27, 2025
d0f13fd
Made easy [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Mar 27, 2025
ea9c620
Merge branch 'callogan' of https://github.com/callogan/Data-Science-F…
callogan Mar 29, 2025
033d72d
Update log.ipynb
callogan Mar 30, 2025
3d0a596
Prepare the branch for work
callogan Dec 31, 2024
ac3b505
[TASK] Quiz (https://github.com/SENATOROVAI/docs/issues/23)
callogan Jan 10, 2025
4123950
Remove files with completed quizes
callogan Jan 15, 2025
58d2a7e
fixup! Prepare the branch for work
callogan Jan 16, 2025
2f74f37
[TASK] STASH (https://github.com/SENATOROVAI/docs/issues/36)
callogan Feb 4, 2025
fce9219
[TASK] Commits (https://github.com/SENATOROVAI/docs/issues/21)
callogan Feb 5, 2025
9c582c3
[TASK] issues (https://github.com/SENATOROVAI/docs/issues/19)
callogan Feb 7, 2025
3fcec93
[TASK] Виртуальное окружение (https://github.com/SENATOROVAI/docs/iss…
callogan Feb 9, 2025
8a00363
[TASK] Контрибьютинг в Open Source (https://github.com/SENATOROVAI/in…
callogan Feb 24, 2025
956b3fc
Delete hw.txt
ruslansenatorov Feb 26, 2025
b5be4e5
Update log.ipynb
callogan Mar 4, 2025
431cfd4
Update log.ipynb (first group lesson)
callogan Mar 9, 2025
5c2e0fe
[TASK] Cpython (https://github.com/SENATOROVAI/intro-cs/issues/4)
callogan Mar 4, 2025
b496dfe
Remove redundant files
callogan Mar 9, 2025
1277870
fixup! Update log.ipynb (first group lesson)
callogan Mar 9, 2025
9619b46
[TASK] Cpython (https://github.com/SENATOROVAI/intro-cs/issues/4)
callogan Mar 10, 2025
349d2e7
Update log.ipynb (second group lesson)
callogan Mar 14, 2025
9c5eb22
Create demo files to practice making conventional commits (Related-To…
callogan Mar 19, 2025
d300c6c
fix(rounding): fix the logic of number rounding
callogan Mar 19, 2025
cbd9ea7
feat(reporting): add generate_report function
callogan Mar 20, 2025
6c53f0c
style: correct code formatting
callogan Mar 20, 2025
c805ab6
docs(generate_report): clarify the documentation
callogan Mar 20, 2025
c81cb92
test(generate_report): add tests
callogan Mar 20, 2025
17b0686
Revert redundant commits
callogan Mar 20, 2025
eb3f8ec
Update log.ipynb (third group lesson)
callogan Mar 23, 2025
a6e6c01
[TASK] STASH (https://github.com/SENATOROVAI/intro-cs/issues/3)
callogan Apr 8, 2025
aade204
[TASK] Commits (https://github.com/SENATOROVAI/intro-cs/issues/5)
callogan Apr 8, 2025
f810710
[TASK] issues (https://github.com/SENATOROVAI/intro-cs/issues/2)
callogan Apr 9, 2025
ec62c91
[TASK] Контрибьютинг в Open Source (https://github.com/SENATOROVAI/in…
callogan Apr 10, 2025
501f80a
Clean code [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Apr 9, 2025
52aacd6
Made easy [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Apr 9, 2025
3319ef0
Update log.ipynb
callogan Apr 10, 2025
a01487d
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Apr 15, 2025
1c25b2a
Makarov notebook tasks [#1] (https://github.com/SENATOROVAI/python/is…
callogan Apr 15, 2025
6a0fd82
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Apr 17, 2025
afa7bca
Merge branch 'SENATOROVAI:main' into main
callogan Apr 18, 2025
5d2ecdc
Create test_dummy.py
callogan Apr 20, 2025
8ea513f
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Apr 20, 2025
06b32c4
Makarov notebook tasks [#1] (https://github.com/SENATOROVAI/python/is…
callogan Apr 22, 2025
f808232
Update log.ipynb
callogan Apr 23, 2025
ed5d391
Makarov notebook tasks [#1] (https://github.com/SENATOROVAI/python/is…
callogan Apr 30, 2025
aec2dbc
Makarov notebook tasks [#1] (https://github.com/SENATOROVAI/python/is…
callogan Apr 30, 2025
1531e67
Makarov notebook tasks [#1] (https://github.com/SENATOROVAI/python/is…
callogan May 1, 2025
0598338
Makarov notebook tasks [#1] (https://github.com/SENATOROVAI/python/is…
callogan May 4, 2025
9c53fa6
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan May 5, 2025
3412c8f
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan May 6, 2025
6a3d147
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan May 7, 2025
bb9b519
Update log.ipynb
callogan May 8, 2025
c6bc7d7
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan May 15, 2025
a0cc603
Merge remote-tracking branch 'upstream/main'
callogan May 27, 2025
780db06
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan May 29, 2025
92cf914
Makarov notebook tasks [#1] (https://github.com/SENATOROVAI/python/is…
callogan Jun 4, 2025
bffefec
Makarov notebook tasks [#1] (https://github.com/SENATOROVAI/python/is…
callogan Jun 5, 2025
ce098b2
Update log.ipynb
callogan Jun 5, 2025
ecfe461
Merge branch 'callogan' of https://github.com/callogan/Data-Science-F…
callogan Jun 17, 2025
dd00d07
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Jun 17, 2025
f06037b
Update log.ipynb
callogan Jun 18, 2025
9af8812
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Jun 29, 2025
19deaec
Merge branch 'SENATOROVAI:main' into main
callogan Jul 11, 2025
c7edc66
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Jul 11, 2025
4825784
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Jul 14, 2025
a0d986d
Update log.ipynb
callogan Jul 17, 2025
ead1718
Makarov notebook tasks [#1] (https://github.com/SENATOROVAI/python/is…
callogan Jul 23, 2025
b79b5a2
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Jul 23, 2025
321df78
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Jul 30, 2025
f9fd3b8
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Aug 1, 2025
dff19a1
Molchanov 1-6 task [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Aug 1, 2025
b5609a4
Makarov notebook tasks [#1] (https://github.com/SENATOROVAI/python/is…
callogan Aug 1, 2025
21ada1e
Yandex tasks [#1] (https://github.com/SENATOROVAI/python/issues/1)
callogan Aug 4, 2025
298be81
Probability space [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/…
callogan Aug 23, 2025
6d058d3
Conditional probability and independence of events [SENATOROVAI#7] (h…
callogan Aug 23, 2025
60aa5f6
Pandas [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issues/7)
callogan Aug 30, 2025
258af37
Data Frame [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issues/7)
callogan Sep 3, 2025
37709aa
EDA theory [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issues/7)
callogan Sep 4, 2025
a0d4931
EDA practice [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issue…
callogan Sep 7, 2025
e8b564a
Errors [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issues/7)
callogan Sep 7, 2025
1422c18
Missing [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issues/7)
callogan Sep 8, 2025
627d6e1
Additional materials [SENATOROVAI#7] (https://github.com/SENATOROVAI/…
callogan Sep 9, 2025
0778926
Missing in time series [SENATOROVAI#7] (https://github.com/SENATOROVA…
callogan Sep 9, 2025
32f209d
Transformation of quantitative data [SENATOROVAI#7] (https://github.c…
callogan Sep 10, 2025
cdf1ddf
Outliers [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issues/7)
callogan Sep 11, 2025
3acc780
Encoding categorical data [SENATOROVAI#7] (https://github.com/SENATOR…
callogan Sep 12, 2025
483e427
Example: Forecasting Employee Outflow [SENATOROVAI#7] (https://github…
callogan Sep 12, 2025
123ee91
Math for DS book [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/i…
callogan Sep 14, 2025
92808a1
Yandex tasks [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issue…
callogan Sep 15, 2025
faebe38
Yandex tasks [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issue…
callogan Sep 15, 2025
48eafc3
Yandex tasks [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issue…
callogan Sep 17, 2025
0a32ccf
Yandex tasks [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issue…
callogan Sep 18, 2025
2bdc24c
Yandex tasks [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issue…
callogan Sep 20, 2025
f4f1521
Yandex tasks [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issue…
callogan Sep 20, 2025
5c379ad
Yandex tasks [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issue…
callogan Sep 21, 2025
c526f84
Yandex tasks [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issue…
callogan Sep 22, 2025
ccbbea5
Practical Statistics for DS book [SENATOROVAI#7] (https://github.com/…
callogan Sep 23, 2025
1e6fa83
Practical Statistics for DS book [SENATOROVAI#7] (https://github.com/…
callogan Sep 24, 2025
273c0cb
Practical Statistics for DS book [SENATOROVAI#7] (https://github.com/…
callogan Sep 26, 2025
ddd41b7
Practical Statistics for DS book [SENATOROVAI#7] (https://github.com/…
callogan Sep 26, 2025
0915775
Data Frame [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issues/7)
callogan Sep 26, 2025
59add9f
EDA practice [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issue…
callogan Sep 26, 2025
285c5ab
Missing [SENATOROVAI#7] (https://github.com/SENATOROVAI/DA/issues/7)
callogan Sep 26, 2025
45f8e79
Missing in time series [SENATOROVAI#7] (https://github.com/SENATOROVA…
callogan Sep 26, 2025
c1be0b2
Linear algebra [SENATOROVAI#7] (https://github.com/SENATOROVAI/intro-…
callogan Sep 27, 2025
3898635
Linear algebra [SENATOROVAI#7] (https://github.com/SENATOROVAI/intro-…
callogan Sep 27, 2025
d177e68
Calculus [SENATOROVAI#7] (https://github.com/SENATOROVAI/intro-ml/iss…
callogan Sep 28, 2025
ac6c963
Calculus [SENATOROVAI#7] (https://github.com/SENATOROVAI/intro-ml/iss…
callogan Sep 28, 2025
1f8afd0
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Oct 26, 2025
d311c7b
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Oct 27, 2025
c15631f
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Oct 28, 2025
80ba524
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Oct 30, 2025
f9c8d66
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Oct 30, 2025
0375b7e
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Oct 30, 2025
92ef978
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Oct 30, 2025
c7bf6d1
Fedorov course notes [SENATOROVAI#4] ( https://github.com/SENATOROVAI…
callogan Oct 31, 2025
18a6874
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 1, 2025
8987a2e
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 2, 2025
4bd23bf
Update log.ipynb
callogan Nov 5, 2025
3bad1fc
Update log.ipynb
callogan Nov 6, 2025
e6a4a35
Merge branch 'SENATOROVAI:main' into main
callogan Nov 7, 2025
207a7df
Update log.ipynb
callogan Nov 7, 2025
ea59cdc
Update log.ipynb
callogan Nov 7, 2025
c35c536
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 8, 2025
44b4c19
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 9, 2025
4938975
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 9, 2025
9a2e238
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 9, 2025
159bf81
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 9, 2025
8ea5a8d
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 9, 2025
e4a87ef
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 9, 2025
386b3f1
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 10, 2025
d996eae
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 10, 2025
be00775
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 10, 2025
dab913d
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 10, 2025
d53c911
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 12, 2025
8a038aa
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 12, 2025
0d09ba5
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 12, 2025
c46666d
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 13, 2025
9fb4769
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 13, 2025
43f0ab9
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 13, 2025
c250a88
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 13, 2025
5d284bd
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 13, 2025
ea61f1e
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 13, 2025
2807b1f
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 13, 2025
fa04add
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 13, 2025
b9b095f
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 13, 2025
1f439dd
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 14, 2025
a4cb5d2
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 14, 2025
1ceacea
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 14, 2025
d2ac225
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 14, 2025
cb7939e
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 14, 2025
bb31eec
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 14, 2025
b4e5385
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 14, 2025
6c4000f
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 15, 2025
430d013
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 16, 2025
a4cbd22
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 17, 2025
0f0ff98
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 17, 2025
13e4bf1
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 17, 2025
f68434a
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 17, 2025
240b128
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 17, 2025
09cd1e4
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 18, 2025
3b14d5c
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 18, 2025
8295af3
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 18, 2025
ddc49ec
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 19, 2025
3ee098e
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 20, 2025
c386613
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 20, 2025
5cfe21e
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 21, 2025
1ce3950
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 21, 2025
a4e7b08
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 21, 2025
545b66f
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 21, 2025
4ab0b7d
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 21, 2025
c8d1018
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 21, 2025
a541ef0
Fedorov course notes [SENATOROVAI#4] (https://github.com/SENATOROVAI/…
callogan Nov 21, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added Algorithms/dir
Empty file.
Empty file added Algorithms/files/dir
Empty file.
Empty file added Math/dir
Empty file.
Empty file added Math/school_math/dir
Empty file.
82 changes: 82 additions & 0 deletions Python/clean-code/chapter_4_choosing_understandable_names.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"\"\"\"Chapter 4 - Choosing understandable names.\"\"\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Casing styles**\n",
"\n",
"Since Python identifiers are case-sensitive and cannot contain spaces, programmers use different naming styles to represent multiple words in an identifier:\n",
"\n",
"- Snake case: Words are separated with an underscores (_), which looks like a flat snake in between each word \n",
"(e.g., my_variable_name). All letters are lowercase, while constants are commonly written in upper snake case style \n",
"(e.g., MAX_CONNECTIONS).\n",
"- Camel case: Words are divided by capitalizing the first letter of each word after the initial one. Typically, the first word starts with a lowercase letter, and the capital letters in the middle mimic a camel’s humps \n",
"(e.g., myVariableName).\n",
"- Pascal case (PascalCase): Similar to camel case, but the first word also begins with a capital letter. This style is named after the Pascal programming language (e.g., MyClassName).\n",
"\n",
"Snake case and camel case are the most widely used styles. Although any naming convention can be selected, it’s important to stick to one consistently throughout a project."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**PEP 8’s Naming Conventions:**\n",
"\n",
"- All letters should be standard ASCII characters — both uppercase and lowercase English letters without accent marks.\n",
"- Module names should be short and written in all lowercase letters.\n",
"- Class names should follow PascalCase formatting.\n",
"- Constant variables should be written using uppercase letters in SNAKE_CASE.\n",
"- Names for functions, methods, and variables should use lowercase snake_case.\n",
"- The first parameter in instance methods should always be named self (in lowercase).\n",
"- The first parameter in class methods should always be named cls (in lowercase).\n",
"- Private attributes in classes should always start with a single underscore (_).\n",
"- Public attributes in classes should never start with an underscore."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Best Practices and Useful Tips on Naming in Python**\n",
"\n",
"- Avoid using names that are too short (like h or aux) or unclear (such as start).\n",
"- Prefer longer, descriptive names that make the code easier to read (for example, totalAnnualRevenue).\n",
"- Short names are acceptable for loop counters (m, n, p) and coordinates (lat, lon).\n",
"- Don’t use unnecessary prefixes — use attribute access directly (for instance, Dog.age instead of dogAge).\n",
"- Avoid Hungarian notation (such as strTitle or bIsActive).\n",
"- For boolean values, use prefixes like is_ or has_ (e.g., is_valid, has_access()).\n",
"- Add units to variable names where relevant to avoid confusion (for example, distance_miles)."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"**Hold off on Overwriting Built-in Names in Python**\n",
"\n",
"- Don’t use Python’s built-in names (like list, input, max, id, etc.) for your variables.\n",
"- To check if a name is built-in, type it in the Python shell and see if it returns a function or object.\n",
"- Avoid giving your .py files the same name as existing modules (for example, naming a file json.py can shadow the real json module).\n",
"- If you encounter an unexpected AttributeError, it might be a sign that a built-in name was accidentally overwritten."
]
}
],
"metadata": {
"language_info": {
"name": "python"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
43 changes: 43 additions & 0 deletions Python/clean-code/chapter_4_choosing_understandable_names.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
"""Chapter 4 - Choosing understandable names."""

# **Casing styles**
#
# Since Python identifiers are case-sensitive and cannot contain spaces, programmers use different naming styles to represent multiple words in an identifier:
#
# - Snake case: Words are separated with an underscores (_), which looks like a flat snake in between each word
# (e.g., my_variable_name). All letters are lowercase, while constants are commonly written in upper snake case style
# (e.g., MAX_CONNECTIONS).
# - Camel case: Words are divided by capitalizing the first letter of each word after the initial one. Typically, the first word starts with a lowercase letter, and the capital letters in the middle mimic a camel’s humps
# (e.g., myVariableName).
# - Pascal case (PascalCase): Similar to camel case, but the first word also begins with a capital letter. This style is named after the Pascal programming language (e.g., MyClassName).
#
# Snake case and camel case are the most widely used styles. Although any naming convention can be selected, it’s important to stick to one consistently throughout a project.

# **PEP 8’s Naming Conventions:**
#
# - All letters should be standard ASCII characters — both uppercase and lowercase English letters without accent marks.
# - Module names should be short and written in all lowercase letters.
# - Class names should follow PascalCase formatting.
# - Constant variables should be written using uppercase letters in SNAKE_CASE.
# - Names for functions, methods, and variables should use lowercase snake_case.
# - The first parameter in instance methods should always be named self (in lowercase).
# - The first parameter in class methods should always be named cls (in lowercase).
# - Private attributes in classes should always start with a single underscore (_).
# - Public attributes in classes should never start with an underscore.

# **Best Practices and Useful Tips on Naming in Python**
#
# - Avoid using names that are too short (like h or aux) or unclear (such as start).
# - Prefer longer, descriptive names that make the code easier to read (for example, totalAnnualRevenue).
# - Short names are acceptable for loop counters (m, n, p) and coordinates (lat, lon).
# - Don’t use unnecessary prefixes — use attribute access directly (for instance, Dog.age instead of dogAge).
# - Avoid Hungarian notation (such as strTitle or bIsActive).
# - For boolean values, use prefixes like is_ or has_ (e.g., is_valid, has_access()).
# - Add units to variable names where relevant to avoid confusion (for example, distance_miles).

# **Hold off on Overwriting Built-in Names in Python**
#
# - Don’t use Python’s built-in names (like list, input, max, id, etc.) for your variables.
# - To check if a name is built-in, type it in the Python shell and see if it returns a function or object.
# - Avoid giving your .py files the same name as existing modules (for example, naming a file json.py can shadow the real json module).
# - If you encounter an unexpected AttributeError, it might be a sign that a built-in name was accidentally overwritten.
125 changes: 125 additions & 0 deletions Python/commits.ipynb
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"id": "cd602499",
"metadata": {},
"outputs": [],
"source": [
"\"\"\"Ответы на вопросы по коммитам.\"\"\""
]
},
{
"cell_type": "markdown",
"id": "4875e71b",
"metadata": {},
"source": [
"1. Опишите своими словами назначение каждого из этих типов коммитов:\n",
"\n",
" ```bash\n",
" - feat - коммит, который добавляет определённую фичу в наш код;\n",
" ```\n",
" ```bash \n",
" - fix - коммит, который исправляет баг в нашем коде; \n",
" ```\n",
" ```bash \n",
" - docs - коммит, указывающий на изменения, связанные с документацией проекта; \n",
" ```\n",
" ```bash \n",
" - style - коммит, обозначающий изменения, связанные с оформлением кода (не влияя не его логику); \n",
" ```\n",
" ```bash \n",
" - refactor - коммит, указывающий на формальное изменение кода без изменения его логики\n",
" (например, разделение больших функций на маленькие, улучшение алгоритмов и т.п.); \n",
" ```\n",
" ```bash \n",
" - test - коммит, обозначающий изменения, связанные с тестированием кода; \n",
" ```\n",
" ```bash \n",
" - build - коммит связан с изменениями, которые влияют на процесс сборки проекта или его зависимости; \n",
" ```\n",
" ```bash \n",
" - ci - коммит связан с изменениями в процессах непрерывной интеграции и развертывания (CI/CD); \n",
" ```\n",
" ```bash \n",
" - perf - коммит улучшает скорость работы или эффективность использования ресурсов\n",
" (например, оптимизация алгоритмов, снижение потребление памяти и т.п.);\n",
" ```\n",
" ```bash \n",
" - chore - коммит используется для решения технических задач, которые не влияют на код приложения и его функциональность (например, обновление зависимостей, очистка ненужных файлов и т.п.).`\n",
" ```"
]
},
{
"cell_type": "markdown",
"id": "27308307",
"metadata": {},
"source": [
"2. Представьте, что вы исправили баг в функции, которая некорректно округляет числа. Сделайте фиктивный коммит и напишите для него сообщение в соответствии с Conventional Commits (используя тип fix).\n",
"\n",
" ```bash\n",
" git commit -m \"fix: correct rounding issue in calculate_total function\"\n",
" ```"
]
},
{
"cell_type": "markdown",
"id": "fa3f2532",
"metadata": {},
"source": [
"3. Добавление новой функциональности:\n",
"Допустим, вы реализовали новую функцию generateReport в проекте. Сделайте фиктивный коммит с типом feat, отражающий добавление этой функциональности.\n",
"\n",
" ```bash\n",
" git commit -m \"feat: add generateReport function to create detailed reports\"\n",
" ```"
]
},
{
"cell_type": "markdown",
"id": "c3c01dfa",
"metadata": {},
"source": [
"4. Модификация формата кода или стилей docs:\n",
"Представьте, что вы поправили отступы и форматирование во всём проекте, не меняя логики кода. Сделайте фиктивный коммит с типом style.\n",
"\n",
" ```bash\n",
" git commit -m \"style: fixed indentation and formatting across the project\"\n",
" ```"
]
},
{
"cell_type": "markdown",
"id": "8f28fce4",
"metadata": {},
"source": [
"5. Документация и тестирование:\n",
"- Сделайте фиктивный коммит с типом, добавляющий или улучшающий документацию для вашей новой функции.\n",
"\n",
" ```bash\n",
" git commit -m \"docs: add documentation for generateReport function\"\n",
" ```\n",
"\n",
"- Сделайте фиктивный коммит с типом test, добавляющий тесты для этой же функции.\n",
"\n",
" ```bash\n",
" git commit -m \"test: add unit tests for generateReport function\"\n",
" ```"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "venv",
"language": "python",
"name": "python3"
},
"language_info": {
"name": "python",
"version": "3.12.6"
}
},
"nbformat": 4,
"nbformat_minor": 5
}
69 changes: 69 additions & 0 deletions Python/commits.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
"""Ответы на вопросы по коммитам."""

# 1. Опишите своими словами назначение каждого из этих типов коммитов:
#
# ```bash
# - feat - коммит, который добавляет определённую фичу в наш код;
# ```
# ```bash
# - fix - коммит, который исправляет баг в нашем коде;
# ```
# ```bash
# - docs - коммит, указывающий на изменения, связанные с документацией проекта;
# ```
# ```bash
# - style - коммит, обозначающий изменения, связанные с оформлением кода (не влияя не его логику);
# ```
# ```bash
# - refactor - коммит, указывающий на формальное изменение кода без изменения его логики
# (например, разделение больших функций на маленькие, улучшение алгоритмов и т.п.);
# ```
# ```bash
# - test - коммит, обозначающий изменения, связанные с тестированием кода;
# ```
# ```bash
# - build - коммит связан с изменениями, которые влияют на процесс сборки проекта или его зависимости;
# ```
# ```bash
# - ci - коммит связан с изменениями в процессах непрерывной интеграции и развертывания (CI/CD);
# ```
# ```bash
# - perf - коммит улучшает скорость работы или эффективность использования ресурсов
# (например, оптимизация алгоритмов, снижение потребление памяти и т.п.);
# ```
# ```bash
# - chore - коммит используется для решения технических задач, которые не влияют на код приложения и его функциональность (например, обновление зависимостей, очистка ненужных файлов и т.п.).`
# ```

# 2. Представьте, что вы исправили баг в функции, которая некорректно округляет числа. Сделайте фиктивный коммит и напишите для него сообщение в соответствии с Conventional Commits (используя тип fix).
#
# ```bash
# git commit -m "fix: correct rounding issue in calculate_total function"
# ```

# 3. Добавление новой функциональности:
# Допустим, вы реализовали новую функцию generateReport в проекте. Сделайте фиктивный коммит с типом feat, отражающий добавление этой функциональности.
#
# ```bash
# git commit -m "feat: add generateReport function to create detailed reports"
# ```

# 4. Модификация формата кода или стилей docs:
# Представьте, что вы поправили отступы и форматирование во всём проекте, не меняя логики кода. Сделайте фиктивный коммит с типом style.
#
# ```bash
# git commit -m "style: fixed indentation and formatting across the project"
# ```

# 5. Документация и тестирование:
# - Сделайте фиктивный коммит с типом, добавляющий или улучшающий документацию для вашей новой функции.
#
# ```bash
# git commit -m "docs: add documentation for generateReport function"
# ```
#
# - Сделайте фиктивный коммит с типом test, добавляющий тесты для этой же функции.
#
# ```bash
# git commit -m "test: add unit tests for generateReport function"
# ```
302 changes: 302 additions & 0 deletions Python/cpython.ipynb

Large diffs are not rendered by default.

Loading
Loading