diff --git a/.gitignore b/.gitignore index 102937a..4b3e069 100644 --- a/.gitignore +++ b/.gitignore @@ -13,6 +13,10 @@ ipython_config.py aimenv/ .venv/ +# CSV datasets +static/* + # Remove previous ipynb_checkpoints # git rm -r .ipynb_checkpoints/ + diff --git a/lab_1/image.png b/lab_1/image.png deleted file mode 100644 index d7908a3..0000000 Binary files a/lab_1/image.png and /dev/null differ diff --git a/lab_1/lab1.ipynb b/lab_1/lab1.ipynb deleted file mode 100644 index 4c97118..0000000 --- a/lab_1/lab1.ipynb +++ /dev/null @@ -1,327 +0,0 @@ -{ - "cells": [ - { - "cell_type": "markdown", - "metadata": {}, - "source": [ - "# Начало ЛР\n", - "\n", - "Выгрузка данных из CSV в датафрейм" - ] - }, - { - "cell_type": "code", - "execution_count": 23, - "metadata": {}, - "outputs": [ - { - "data": { - "text/html": [ - "
\n", - " | Education Level | \n", - "Institution Type | \n", - "Gender | \n", - "Age | \n", - "Device | \n", - "IT Student | \n", - "Location | \n", - "Financial Condition | \n", - "Internet Type | \n", - "Network Type | \n", - "Flexibility Level | \n", - "
---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", - "University | \n", - "Private | \n", - "Male | \n", - "23 | \n", - "Tab | \n", - "No | \n", - "Town | \n", - "Mid | \n", - "Wifi | \n", - "4G | \n", - "Moderate | \n", - "
1 | \n", - "University | \n", - "Private | \n", - "Female | \n", - "23 | \n", - "Mobile | \n", - "No | \n", - "Town | \n", - "Mid | \n", - "Mobile Data | \n", - "4G | \n", - "Moderate | \n", - "
2 | \n", - "College | \n", - "Public | \n", - "Female | \n", - "18 | \n", - "Mobile | \n", - "No | \n", - "Town | \n", - "Mid | \n", - "Wifi | \n", - "4G | \n", - "Moderate | \n", - "
3 | \n", - "School | \n", - "Private | \n", - "Female | \n", - "11 | \n", - "Mobile | \n", - "No | \n", - "Town | \n", - "Mid | \n", - "Mobile Data | \n", - "4G | \n", - "Moderate | \n", - "
4 | \n", - "School | \n", - "Private | \n", - "Female | \n", - "18 | \n", - "Mobile | \n", - "No | \n", - "Town | \n", - "Poor | \n", - "Mobile Data | \n", - "3G | \n", - "Low | \n", - "
\n", + " | HeartDisease | \n", + "BMI | \n", + "Smoking | \n", + "AlcoholDrinking | \n", + "Stroke | \n", + "PhysicalHealth | \n", + "MentalHealth | \n", + "DiffWalking | \n", + "Sex | \n", + "AgeCategory | \n", + "Race | \n", + "Diabetic | \n", + "PhysicalActivity | \n", + "GenHealth | \n", + "SleepTime | \n", + "Asthma | \n", + "KidneyDisease | \n", + "SkinCancer | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "No | \n", + "16.60 | \n", + "Yes | \n", + "No | \n", + "No | \n", + "3.0 | \n", + "30.0 | \n", + "No | \n", + "Female | \n", + "55-59 | \n", + "White | \n", + "Yes | \n", + "Yes | \n", + "Very good | \n", + "5.0 | \n", + "Yes | \n", + "No | \n", + "Yes | \n", + "
1 | \n", + "No | \n", + "20.34 | \n", + "No | \n", + "No | \n", + "Yes | \n", + "0.0 | \n", + "0.0 | \n", + "No | \n", + "Female | \n", + "80 or older | \n", + "White | \n", + "No | \n", + "Yes | \n", + "Very good | \n", + "7.0 | \n", + "No | \n", + "No | \n", + "No | \n", + "
2 | \n", + "No | \n", + "26.58 | \n", + "Yes | \n", + "No | \n", + "No | \n", + "20.0 | \n", + "30.0 | \n", + "No | \n", + "Male | \n", + "65-69 | \n", + "White | \n", + "Yes | \n", + "Yes | \n", + "Fair | \n", + "8.0 | \n", + "Yes | \n", + "No | \n", + "No | \n", + "
3 | \n", + "No | \n", + "24.21 | \n", + "No | \n", + "No | \n", + "No | \n", + "0.0 | \n", + "0.0 | \n", + "No | \n", + "Female | \n", + "75-79 | \n", + "White | \n", + "No | \n", + "No | \n", + "Good | \n", + "6.0 | \n", + "No | \n", + "No | \n", + "Yes | \n", + "
4 | \n", + "No | \n", + "23.71 | \n", + "No | \n", + "No | \n", + "No | \n", + "28.0 | \n", + "0.0 | \n", + "Yes | \n", + "Female | \n", + "40-44 | \n", + "White | \n", + "No | \n", + "Yes | \n", + "Very good | \n", + "8.0 | \n", + "No | \n", + "No | \n", + "No | \n", + "
\n", + " | BMI | \n", + "PhysicalHealth | \n", + "MentalHealth | \n", + "SleepTime | \n", + "
---|---|---|---|---|
count | \n", + "319795.000000 | \n", + "319795.00000 | \n", + "319795.000000 | \n", + "319795.000000 | \n", + "
mean | \n", + "28.325399 | \n", + "3.37171 | \n", + "3.898366 | \n", + "7.097075 | \n", + "
std | \n", + "6.356100 | \n", + "7.95085 | \n", + "7.955235 | \n", + "1.436007 | \n", + "
min | \n", + "12.020000 | \n", + "0.00000 | \n", + "0.000000 | \n", + "1.000000 | \n", + "
25% | \n", + "24.030000 | \n", + "0.00000 | \n", + "0.000000 | \n", + "6.000000 | \n", + "
50% | \n", + "27.340000 | \n", + "0.00000 | \n", + "0.000000 | \n", + "7.000000 | \n", + "
75% | \n", + "31.420000 | \n", + "2.00000 | \n", + "3.000000 | \n", + "8.000000 | \n", + "
max | \n", + "94.850000 | \n", + "30.00000 | \n", + "30.000000 | \n", + "24.000000 | \n", + "
\n", + " | Unnamed: 0 | \n", + "Name | \n", + "Rating | \n", + "Spec_score | \n", + "No_of_sim | \n", + "Ram | \n", + "Battery | \n", + "Display | \n", + "Camera | \n", + "External_Memory | \n", + "Android_version | \n", + "Price | \n", + "company | \n", + "Inbuilt_memory | \n", + "fast_charging | \n", + "Screen_resolution | \n", + "Processor | \n", + "Processor_name | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "0 | \n", + "Samsung Galaxy F14 5G | \n", + "4.65 | \n", + "68 | \n", + "Dual Sim, 3G, 4G, 5G, VoLTE, | \n", + "4 GB RAM | \n", + "6000 mAh Battery | \n", + "6.6 inches | \n", + "50 MP + 2 MP Dual Rear & 13 MP Front Camera | \n", + "Memory Card Supported, upto 1 TB | \n", + "13 | \n", + "9,999 | \n", + "Samsung | \n", + "128 GB inbuilt | \n", + "25W Fast Charging | \n", + "2408 x 1080 px Display with Water Drop Notch | \n", + "Octa Core Processor | \n", + "Exynos 1330 | \n", + "
1 | \n", + "1 | \n", + "Samsung Galaxy A11 | \n", + "4.20 | \n", + "63 | \n", + "Dual Sim, 3G, 4G, VoLTE, | \n", + "2 GB RAM | \n", + "4000 mAh Battery | \n", + "6.4 inches | \n", + "13 MP + 5 MP + 2 MP Triple Rear & 8 MP Fro... | \n", + "Memory Card Supported, upto 512 GB | \n", + "10 | \n", + "9,990 | \n", + "Samsung | \n", + "32 GB inbuilt | \n", + "15W Fast Charging | \n", + "720 x 1560 px Display with Punch Hole | \n", + "1.8 GHz Processor | \n", + "Octa Core | \n", + "
2 | \n", + "2 | \n", + "Samsung Galaxy A13 | \n", + "4.30 | \n", + "75 | \n", + "Dual Sim, 3G, 4G, VoLTE, | \n", + "4 GB RAM | \n", + "5000 mAh Battery | \n", + "6.6 inches | \n", + "50 MP Quad Rear & 8 MP Front Camera | \n", + "Memory Card Supported, upto 1 TB | \n", + "12 | \n", + "11,999 | \n", + "Samsung | \n", + "64 GB inbuilt | \n", + "25W Fast Charging | \n", + "1080 x 2408 px Display with Water Drop Notch | \n", + "2 GHz Processor | \n", + "Octa Core | \n", + "
3 | \n", + "3 | \n", + "Samsung Galaxy F23 | \n", + "4.10 | \n", + "73 | \n", + "Dual Sim, 3G, 4G, VoLTE, | \n", + "4 GB RAM | \n", + "6000 mAh Battery | \n", + "6.4 inches | \n", + "48 MP Quad Rear & 13 MP Front Camera | \n", + "Memory Card Supported, upto 1 TB | \n", + "12 | \n", + "11,999 | \n", + "Samsung | \n", + "64 GB inbuilt | \n", + "NaN | \n", + "720 x 1600 px | \n", + "Octa Core | \n", + "Helio G88 | \n", + "
4 | \n", + "4 | \n", + "Samsung Galaxy A03s (4GB RAM + 64GB) | \n", + "4.10 | \n", + "69 | \n", + "Dual Sim, 3G, 4G, VoLTE, | \n", + "4 GB RAM | \n", + "5000 mAh Battery | \n", + "6.5 inches | \n", + "13 MP + 2 MP + 2 MP Triple Rear & 5 MP Fro... | \n", + "Memory Card Supported, upto 1 TB | \n", + "11 | \n", + "11,999 | \n", + "Samsung | \n", + "64 GB inbuilt | \n", + "15W Fast Charging | \n", + "720 x 1600 px Display with Water Drop Notch | \n", + "Octa Core | \n", + "Helio P35 | \n", + "
\n", + " | Unnamed: 0 | \n", + "Rating | \n", + "Spec_score | \n", + "
---|---|---|---|
count | \n", + "1370.000000 | \n", + "1370.000000 | \n", + "1370.000000 | \n", + "
mean | \n", + "684.500000 | \n", + "4.374416 | \n", + "80.234307 | \n", + "
std | \n", + "395.629246 | \n", + "0.230176 | \n", + "8.373922 | \n", + "
min | \n", + "0.000000 | \n", + "3.750000 | \n", + "42.000000 | \n", + "
25% | \n", + "342.250000 | \n", + "4.150000 | \n", + "75.000000 | \n", + "
50% | \n", + "684.500000 | \n", + "4.400000 | \n", + "82.000000 | \n", + "
75% | \n", + "1026.750000 | \n", + "4.550000 | \n", + "86.000000 | \n", + "
max | \n", + "1369.000000 | \n", + "4.750000 | \n", + "98.000000 | \n", + "
\n", + " | Employee_ID | \n", + "Age | \n", + "Gender | \n", + "Job_Role | \n", + "Industry | \n", + "Years_of_Experience | \n", + "Work_Location | \n", + "Hours_Worked_Per_Week | \n", + "Number_of_Virtual_Meetings | \n", + "Work_Life_Balance_Rating | \n", + "Stress_Level | \n", + "Mental_Health_Condition | \n", + "Access_to_Mental_Health_Resources | \n", + "Productivity_Change | \n", + "Social_Isolation_Rating | \n", + "Satisfaction_with_Remote_Work | \n", + "Company_Support_for_Remote_Work | \n", + "Physical_Activity | \n", + "Sleep_Quality | \n", + "Region | \n", + "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", + "EMP0001 | \n", + "32 | \n", + "Non-binary | \n", + "HR | \n", + "Healthcare | \n", + "13 | \n", + "Hybrid | \n", + "47 | \n", + "7 | \n", + "2 | \n", + "Medium | \n", + "Depression | \n", + "No | \n", + "Decrease | \n", + "1 | \n", + "Unsatisfied | \n", + "1 | \n", + "Weekly | \n", + "Good | \n", + "Europe | \n", + "
1 | \n", + "EMP0002 | \n", + "40 | \n", + "Female | \n", + "Data Scientist | \n", + "IT | \n", + "3 | \n", + "Remote | \n", + "52 | \n", + "4 | \n", + "1 | \n", + "Medium | \n", + "Anxiety | \n", + "No | \n", + "Increase | \n", + "3 | \n", + "Satisfied | \n", + "2 | \n", + "Weekly | \n", + "Good | \n", + "Asia | \n", + "
2 | \n", + "EMP0003 | \n", + "59 | \n", + "Non-binary | \n", + "Software Engineer | \n", + "Education | \n", + "22 | \n", + "Hybrid | \n", + "46 | \n", + "11 | \n", + "5 | \n", + "Medium | \n", + "Anxiety | \n", + "No | \n", + "No Change | \n", + "4 | \n", + "Unsatisfied | \n", + "5 | \n", + "NaN | \n", + "Poor | \n", + "North America | \n", + "
3 | \n", + "EMP0004 | \n", + "27 | \n", + "Male | \n", + "Software Engineer | \n", + "Finance | \n", + "20 | \n", + "Onsite | \n", + "32 | \n", + "8 | \n", + "4 | \n", + "High | \n", + "Depression | \n", + "Yes | \n", + "Increase | \n", + "3 | \n", + "Unsatisfied | \n", + "3 | \n", + "NaN | \n", + "Poor | \n", + "Europe | \n", + "
4 | \n", + "EMP0005 | \n", + "49 | \n", + "Male | \n", + "Sales | \n", + "Consulting | \n", + "32 | \n", + "Onsite | \n", + "35 | \n", + "12 | \n", + "2 | \n", + "High | \n", + "NaN | \n", + "Yes | \n", + "Decrease | \n", + "3 | \n", + "Unsatisfied | \n", + "3 | \n", + "Weekly | \n", + "Average | \n", + "North America | \n", + "
\n", + " | Age | \n", + "Years_of_Experience | \n", + "Hours_Worked_Per_Week | \n", + "Number_of_Virtual_Meetings | \n", + "Work_Life_Balance_Rating | \n", + "Social_Isolation_Rating | \n", + "Company_Support_for_Remote_Work | \n", + "
---|---|---|---|---|---|---|---|
count | \n", + "5000.000000 | \n", + "5000.000000 | \n", + "5000.000000 | \n", + "5000.000000 | \n", + "5000.000000 | \n", + "5000.000000 | \n", + "5000.000000 | \n", + "
mean | \n", + "40.995000 | \n", + "17.810200 | \n", + "39.614600 | \n", + "7.559000 | \n", + "2.984200 | \n", + "2.993800 | \n", + "3.007800 | \n", + "
std | \n", + "11.296021 | \n", + "10.020412 | \n", + "11.860194 | \n", + "4.636121 | \n", + "1.410513 | \n", + "1.394615 | \n", + "1.399046 | \n", + "
min | \n", + "22.000000 | \n", + "1.000000 | \n", + "20.000000 | \n", + "0.000000 | \n", + "1.000000 | \n", + "1.000000 | \n", + "1.000000 | \n", + "
25% | \n", + "31.000000 | \n", + "9.000000 | \n", + "29.000000 | \n", + "4.000000 | \n", + "2.000000 | \n", + "2.000000 | \n", + "2.000000 | \n", + "
50% | \n", + "41.000000 | \n", + "18.000000 | \n", + "40.000000 | \n", + "8.000000 | \n", + "3.000000 | \n", + "3.000000 | \n", + "3.000000 | \n", + "
75% | \n", + "51.000000 | \n", + "26.000000 | \n", + "50.000000 | \n", + "12.000000 | \n", + "4.000000 | \n", + "4.000000 | \n", + "4.000000 | \n", + "
max | \n", + "60.000000 | \n", + "35.000000 | \n", + "60.000000 | \n", + "15.000000 | \n", + "5.000000 | \n", + "5.000000 | \n", + "5.000000 | \n", + "