Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
a5baa4c
completed a few homework
shiyamhoda Apr 29, 2024
af1cb10
Merge branch 'UofT-DSI:main' into main
shiyamhoda Apr 30, 2024
e505355
did homework2
shiyamhoda Apr 30, 2024
c3d188d
complete homework2
shiyamhoda Apr 30, 2024
c1dcc30
gone through slide 04
shiyamhoda Apr 30, 2024
c21df6a
Merge branch 'main' of https://github.com/shiyamhoda/python
shiyamhoda May 1, 2024
8d23b35
comminting sync_guide
shiyamhoda May 1, 2024
233b3cb
Went through a few of homework files prior to class
shiyamhoda May 1, 2024
ffe895f
live class session ended
shiyamhoda May 2, 2024
3022bfc
Merge branch 'main' into self_study
shiyamhoda May 2, 2024
ab0968d
Merge branch 'UofT-DSI:main' into main
shiyamhoda May 2, 2024
3355c7e
Merge branch 'main' of https://github.com/shiyamhoda/python
shiyamhoda May 2, 2024
7d1a28c
Merge branch 'UofT-DSI:main' into main
shiyamhoda May 3, 2024
b34d609
Merge branch 'main' of https://github.com/shiyamhoda/python
shiyamhoda May 3, 2024
4ad21ef
statring assignment
shiyamhoda May 3, 2024
b18de7c
Merge branch 'UofT-DSI:main' into main
shiyamhoda May 7, 2024
11adcb2
self study commit
shiyamhoda May 7, 2024
ee1c3fe
Merge remote-tracking branch 'refs/remotes/origin/main' into self_study
shiyamhoda May 7, 2024
f4ed9fd
Merge branch 'main' of https://github.com/shiyamhoda/python
shiyamhoda May 7, 2024
a77e003
Merge branch 'self_study'
shiyamhoda May 7, 2024
acda89b
homeworks 1-10
shiyamhoda May 8, 2024
0ed266d
main commit
shiyamhoda May 8, 2024
3a6a59b
Merge branch 'self_study'
shiyamhoda May 8, 2024
9e56e1f
Merge remote-tracking branch 'origin' into self_study
shiyamhoda May 8, 2024
870d296
Merge branch 'main' into self_study
shiyamhoda May 8, 2024
76a5fd4
assignment2 done
shiyamhoda May 9, 2024
fe9be74
Merge branch 'main' of https://github.com/shiyamhoda/python
shiyamhoda May 9, 2024
eb23ac4
Merge branch 'self_study'
shiyamhoda May 9, 2024
8752daa
initial commit
shiyamhoda May 10, 2024
d618e31
Restore assignment-2.ipynb to upstream version
shiyamhoda May 10, 2024
4d78248
closing self study
shiyamhoda May 10, 2024
1d21796
Restoring assignment 2 to upstream version
shiyamhoda May 10, 2024
d63da1e
Completed assignment 2
shiyamhoda May 10, 2024
29c52dc
Removed unwanted files from pull request
shiyamhoda May 10, 2024
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
316 changes: 283 additions & 33 deletions 01_slides/01_data_types.ipynb

Large diffs are not rendered by default.

3,311 changes: 3,311 additions & 0 deletions 01_slides/04_inputs.ipynb

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion 01_slides/05_strings.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
"version": "3.9.15"
},
"rise": {
"scroll": true,
Expand Down
46 changes: 41 additions & 5 deletions 01_slides/09_reading_and_writing_files.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,17 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"<_io.TextIOWrapper name='../05_data/slides_data/california_housing_test.csv' mode='r' encoding='UTF-8'>\n"
]
}
],
"source": [
"with open('../05_data/slides_data/california_housing_test.csv', 'r') as f:\n",
" print(f)"
Expand All @@ -67,9 +75,37 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"\"longitude\",\"latitude\",\"housing_median_age\",\"total_rooms\",\"total_bedrooms\",\"population\",\"households\",\"median_income\",\"median_house_value\"\n",
"\n",
"-122.050000,37.370000,27.000000,3885.000000,661.000000,1537.000000,606.000000,6.608500,344700.000000\n",
"\n",
"-118.300000,34.260000,43.000000,1510.000000,310.000000,809.000000,277.000000,3.599000,176500.000000\n",
"\n",
"-117.810000,33.780000,27.000000,3589.000000,507.000000,1484.000000,495.000000,5.793400,270500.000000\n",
"\n",
"-118.360000,33.820000,28.000000,67.000000,15.000000,49.000000,11.000000,6.135900,330000.000000\n",
"\n"
]
},
{
"ename": "",
"evalue": "",
"output_type": "error",
"traceback": [
"\u001b[1;31mThe Kernel crashed while executing code in the current cell or a previous cell. \n",
"\u001b[1;31mPlease review the code in the cell(s) to identify a possible cause of the failure. \n",
"\u001b[1;31mClick <a href='https://aka.ms/vscodeJupyterKernelCrash'>here</a> for more info. \n",
"\u001b[1;31mView Jupyter <a href='command:jupyter.viewOutput'>log</a> for further details."
]
}
],
"source": [
"with open('../05_data/slides_data/california_housing_test.csv', 'r') as f:\n",
" for i in range(5):\n",
Expand Down Expand Up @@ -228,7 +264,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.8"
"version": "3.9.15"
}
},
"nbformat": 4,
Expand Down
51 changes: 45 additions & 6 deletions 01_slides/10_object_oriented_programming.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,17 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"1VWAT7A32EC093779\n"
]
}
],
"source": [
"class Car:\n",
" def __init__(self, name, brand, model, vin):\n",
Expand Down Expand Up @@ -127,11 +135,42 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"John Doe\n",
"36\n"
]
}
],
"source": [
"# Your code goes here"
"# Your code goes here\n",
"from datetime import datetime\n",
"class Person:\n",
" \n",
"\n",
" def __init__(self, first_name, middle_name, last_name, date_of_birth ):\n",
" self.first_name = first_name \n",
" self.middle_name = middle_name\n",
" self.last_name = last_name\n",
" self.date_of_birth = date_of_birth\n",
" \n",
" def full_name(self):\n",
" print(f'{self.first_name} {self.last_name}')\n",
"\n",
" def age(self):\n",
" current_year = datetime.now().year\n",
" birth_year = int(self.date_of_birth[:4])\n",
" age = current_year - birth_year \n",
" print(age)\n",
"\n",
"p1 = Person('John', 'K', 'Doe', '1988-05-05')\n",
"p1.full_name()\n",
"p1.age()"
]
},
{
Expand Down Expand Up @@ -316,7 +355,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.11.5"
"version": "3.9.15"
}
},
"nbformat": 4,
Expand Down
Loading