Skip to content

Commit bf4f3cb

Browse files
ls-lint.yml modification
1 parent 07f5fd3 commit bf4f3cb

File tree

3 files changed

+17
-146
lines changed

3 files changed

+17
-146
lines changed

.ls-lint.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,20 @@ ls:
44
.md: snake_case | regex:[0-9A-Z\-]+
55
.txt: snake_case | kebab-case
66
.yml: snake_case | kebab-case
7+
.ipynb: snake_case
8+
.csv: snake_case
9+
.py: snake_case
710

811
ignore:
912
- .git
1013
- .github
1114
- .vscode
12-
- .venv
13-
- venv
1415
- .ruff_cache
1516
- .pytest_cache
1617
- __pycache__
17-
- .ls-lint.yml
18-
- .ls-lint
19-
- .ls
18+
- .venv
19+
- **/site-packages/**
20+
- 1_datasets
21+
- data
22+
- dist
23+
- build

3_data_exploration/data_exploration_caribbean.ipynb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"# Import modules \n",
1111
"import pandas as pd\n",
1212
"import matplotlib.pyplot as plt\n",
13-
"import numpy as np\n",
1413
"import seaborn as sns\n",
1514
"\n",
1615
"sns.set(style = \"whitegrid\")\n",

4_data_analysis/MLProject.ipynb

Lines changed: 8 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
},
1111
{
1212
"cell_type": "code",
13-
"execution_count": 11,
13+
"execution_count": null,
1414
"id": "9beb769c",
1515
"metadata": {},
1616
"outputs": [
@@ -26,8 +26,8 @@
2626
}
2727
],
2828
"source": [
29-
"import os \n",
30-
"import sys\n",
29+
"import os\n",
30+
"import joblib\n",
3131
"\n",
3232
"os.getcwd()\n"
3333
]
@@ -161,149 +161,18 @@
161161
"print(f\"\\nColumns: {df.columns.tolist()}\")\n",
162162
"print(f\"\\nData Types:\\n{df.dtypes}\")\n",
163163
"print(f\"\\nMissing Values:\\n{df.isnull().sum()}\")\n",
164-
"print(f\"\\nFirst 5 rows:\")\n",
164+
"print(\"\\nFirst 5 rows:\")\n",
165165
"print(df.head())\n",
166166
"\n",
167-
"print(f\"\\n=== BASIC STATISTICS ===\")\n",
167+
"print(\"\\n=== BASIC STATISTICS ===\")\n",
168168
"print(df.describe())\n",
169169
"\n",
170-
"print(f\"\\n=== UNIQUE VALUES ===\")\n",
170+
"print(\"\\n=== UNIQUE VALUES ===\")\n",
171171
"print(f\"Visitor types: {df['type_of_visitors'].unique()}\")\n",
172172
"print(f\"Number of countries: {df['country_receiving'].nunique()}\")\n",
173173
"print(f\"Years range: {df['year'].min()} to {df['year'].max()}\")\n"
174174
]
175175
},
176-
{
177-
"cell_type": "code",
178-
"execution_count": 20,
179-
"id": "acc8bd2f",
180-
"metadata": {},
181-
"outputs": [
182-
{
183-
"name": "stdout",
184-
"output_type": "stream",
185-
"text": [
186-
"<class 'pandas.core.frame.DataFrame'>\n",
187-
"RangeIndex: 3025 entries, 0 to 3024\n",
188-
"Data columns (total 6 columns):\n",
189-
" # Column Non-Null Count Dtype \n",
190-
"--- ------ -------------- ----- \n",
191-
" 0 type_of_visitors 3025 non-null object \n",
192-
" 1 country_receiving 3025 non-null object \n",
193-
" 2 where_tourist_from 3025 non-null object \n",
194-
" 3 year 3025 non-null int64 \n",
195-
" 4 number_of_tourist 3025 non-null float64\n",
196-
" 5 unit 3025 non-null object \n",
197-
"dtypes: float64(1), int64(1), object(4)\n",
198-
"memory usage: 141.9+ KB\n"
199-
]
200-
},
201-
{
202-
"data": {
203-
"text/html": [
204-
"<div>\n",
205-
"<style scoped>\n",
206-
" .dataframe tbody tr th:only-of-type {\n",
207-
" vertical-align: middle;\n",
208-
" }\n",
209-
"\n",
210-
" .dataframe tbody tr th {\n",
211-
" vertical-align: top;\n",
212-
" }\n",
213-
"\n",
214-
" .dataframe thead th {\n",
215-
" text-align: right;\n",
216-
" }\n",
217-
"</style>\n",
218-
"<table border=\"1\" class=\"dataframe\">\n",
219-
" <thead>\n",
220-
" <tr style=\"text-align: right;\">\n",
221-
" <th></th>\n",
222-
" <th>type_of_visitors</th>\n",
223-
" <th>country_receiving</th>\n",
224-
" <th>where_tourist_from</th>\n",
225-
" <th>year</th>\n",
226-
" <th>number_of_tourist</th>\n",
227-
" <th>unit</th>\n",
228-
" </tr>\n",
229-
" </thead>\n",
230-
" <tbody>\n",
231-
" <tr>\n",
232-
" <th>0</th>\n",
233-
" <td>excursionists</td>\n",
234-
" <td>Antigua and Barbuda</td>\n",
235-
" <td>World</td>\n",
236-
" <td>1995</td>\n",
237-
" <td>227.0</td>\n",
238-
" <td>thousand trips</td>\n",
239-
" </tr>\n",
240-
" <tr>\n",
241-
" <th>1</th>\n",
242-
" <td>excursionists</td>\n",
243-
" <td>Antigua and Barbuda</td>\n",
244-
" <td>World</td>\n",
245-
" <td>1996</td>\n",
246-
" <td>270.0</td>\n",
247-
" <td>thousand trips</td>\n",
248-
" </tr>\n",
249-
" <tr>\n",
250-
" <th>2</th>\n",
251-
" <td>excursionists</td>\n",
252-
" <td>Antigua and Barbuda</td>\n",
253-
" <td>World</td>\n",
254-
" <td>1997</td>\n",
255-
" <td>286.0</td>\n",
256-
" <td>thousand trips</td>\n",
257-
" </tr>\n",
258-
" <tr>\n",
259-
" <th>3</th>\n",
260-
" <td>excursionists</td>\n",
261-
" <td>Antigua and Barbuda</td>\n",
262-
" <td>World</td>\n",
263-
" <td>1998</td>\n",
264-
" <td>336.0</td>\n",
265-
" <td>thousand trips</td>\n",
266-
" </tr>\n",
267-
" <tr>\n",
268-
" <th>4</th>\n",
269-
" <td>excursionists</td>\n",
270-
" <td>Antigua and Barbuda</td>\n",
271-
" <td>World</td>\n",
272-
" <td>1999</td>\n",
273-
" <td>328.0</td>\n",
274-
" <td>thousand trips</td>\n",
275-
" </tr>\n",
276-
" </tbody>\n",
277-
"</table>\n",
278-
"</div>"
279-
],
280-
"text/plain": [
281-
" type_of_visitors country_receiving where_tourist_from year \\\n",
282-
"0 excursionists Antigua and Barbuda World 1995 \n",
283-
"1 excursionists Antigua and Barbuda World 1996 \n",
284-
"2 excursionists Antigua and Barbuda World 1997 \n",
285-
"3 excursionists Antigua and Barbuda World 1998 \n",
286-
"4 excursionists Antigua and Barbuda World 1999 \n",
287-
"\n",
288-
" number_of_tourist unit \n",
289-
"0 227.0 thousand trips \n",
290-
"1 270.0 thousand trips \n",
291-
"2 286.0 thousand trips \n",
292-
"3 336.0 thousand trips \n",
293-
"4 328.0 thousand trips "
294-
]
295-
},
296-
"execution_count": 20,
297-
"metadata": {},
298-
"output_type": "execute_result"
299-
}
300-
],
301-
"source": [
302-
"data.info()\n",
303-
"\n",
304-
"data.head()\n"
305-
]
306-
},
307176
{
308177
"cell_type": "markdown",
309178
"id": "c7b16997",
@@ -1086,7 +955,7 @@
1086955
},
1087956
{
1088957
"cell_type": "code",
1089-
"execution_count": 30,
958+
"execution_count": null,
1090959
"id": "fb356334",
1091960
"metadata": {},
1092961
"outputs": [
@@ -1151,8 +1020,7 @@
11511020
"# Step 10.2: Save the model (optional)\n",
11521021
"print(\"\\n=== SAVING MODEL ARTIFACTS ===\")\n",
11531022
"\n",
1154-
"import joblib\n",
1155-
"import os\n",
1023+
"\n",
11561024
"\n",
11571025
"# Create directory for model artifacts\n",
11581026
"os.makedirs(\"model_artifacts\", exist_ok=True)\n",

0 commit comments

Comments
 (0)