Skip to content
Open
Changes from all commits
Commits
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
179 changes: 166 additions & 13 deletions notebooks/0-starter.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,18 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"id": "ed67beb7",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"Hello World\n"
]
}
],
"source": [
"# try run this.\n",
"# If this does not run, fix it first\n",
Expand All @@ -58,10 +66,71 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"id": "b77288e5",
"metadata": {},
"outputs": [],
"outputs": [
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>col1</th>\n",
" <th>col2</th>\n",
" <th>col3</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>3</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>11</td>\n",
" <td>22</td>\n",
" <td>33</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>111</td>\n",
" <td>222</td>\n",
" <td>333</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" col1 col2 col3\n",
"0 1 2 3\n",
"1 11 22 33\n",
"2 111 222 333"
]
},
"execution_count": 2,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import pandas as pd\n",
"\n",
Expand Down Expand Up @@ -91,21 +160,97 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 3,
"id": "ad53699f",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/Projects/python-project-starter/notebooks\n"
]
}
],
"source": [
"# This is my current path\n",
"!pwd"
]
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 4,
"id": "ccb07802",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"/Projects/python-project-starter/data/example.csv\n"
]
},
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>col1</th>\n",
" <th>col2</th>\n",
" <th>col3</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>3</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>11</td>\n",
" <td>22</td>\n",
" <td>33</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>111</td>\n",
" <td>222</td>\n",
" <td>333</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" col1 col2 col3\n",
"0 1 2 3\n",
"1 11 22 33\n",
"2 111 222 333"
]
},
"execution_count": 4,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"import os\n",
"ROOT_DIR = \"/Projects/python-project-starter\"\n",
Expand All @@ -129,13 +274,21 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 5,
"id": "2190bcd0",
"metadata": {},
"outputs": [],
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"st126055 - Supanut Kompayak\n"
]
}
],
"source": [
"name:str = \"\"\n",
"student_id:str = \"st\"\n",
"name:str = \"Supanut Kompayak\"\n",
"student_id:str = \"st126055\"\n",
"print(f\"{student_id} - {name}\")"
]
},
Expand All @@ -150,7 +303,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "python-project-starter (3.12.11)",
"display_name": "python-project-starter",
"language": "python",
"name": "python3"
},
Expand Down