design layout fix

This commit is contained in:
Jesselyn Mu
2025-02-01 12:36:28 +07:00
parent 49f1f93bd9
commit 84f08f24c6
9 changed files with 15417 additions and 8535 deletions

View File

@ -6,194 +6,29 @@
"metadata": {},
"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>employee_id</th>\n",
" <th>domisili</th>\n",
" <th>jenis_kelamin</th>\n",
" <th>date_of_birth</th>\n",
" <th>join_date</th>\n",
" <th>resign_date</th>\n",
" <th>marriage_stat</th>\n",
" <th>dependant</th>\n",
" <th>education</th>\n",
" <th>absent_90D</th>\n",
" <th>avg_time_work</th>\n",
" <th>departemen</th>\n",
" <th>position</th>\n",
" <th>income</th>\n",
" <th>total_komp</th>\n",
" <th>job_satisfaction</th>\n",
" <th>performance_rating</th>\n",
" <th>churn_status</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>EM0001</td>\n",
" <td>Kabupaten Bogor</td>\n",
" <td>Laki-laki</td>\n",
" <td>1970-09-10</td>\n",
" <td>2024-01-04</td>\n",
" <td>NaN</td>\n",
" <td>Married</td>\n",
" <td>2</td>\n",
" <td>S1</td>\n",
" <td>1.0</td>\n",
" <td>9.34</td>\n",
" <td>Engineering &amp; IT</td>\n",
" <td>Junior</td>\n",
" <td>5198046</td>\n",
" <td>NaN</td>\n",
" <td>2</td>\n",
" <td>2</td>\n",
" <td>0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>EM0002</td>\n",
" <td>Kota Jakarta Selatan</td>\n",
" <td>Laki-laki</td>\n",
" <td>1980-12-09</td>\n",
" <td>2021-01-05</td>\n",
" <td>2023-04-22</td>\n",
" <td>Married</td>\n",
" <td>3</td>\n",
" <td>SLTA</td>\n",
" <td>11.0</td>\n",
" <td>9.86</td>\n",
" <td>Service &amp; Support</td>\n",
" <td>Staff</td>\n",
" <td>1281761</td>\n",
" <td>NaN</td>\n",
" <td>1</td>\n",
" <td>2</td>\n",
" <td>1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>EM0003</td>\n",
" <td>Tangerang</td>\n",
" <td>Laki-laki</td>\n",
" <td>1987-04-25</td>\n",
" <td>2022-01-17</td>\n",
" <td>2024-01-31</td>\n",
" <td>Single</td>\n",
" <td>0</td>\n",
" <td>D2</td>\n",
" <td>3.0</td>\n",
" <td>9.66</td>\n",
" <td>Creative &amp; Design</td>\n",
" <td>Staff</td>\n",
" <td>4902208</td>\n",
" <td>NaN</td>\n",
" <td>1</td>\n",
" <td>3</td>\n",
" <td>1</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>EM0004</td>\n",
" <td>Kepulauan Seribu</td>\n",
" <td>Laki-laki</td>\n",
" <td>1975-12-24</td>\n",
" <td>2022-01-26</td>\n",
" <td>NaN</td>\n",
" <td>Married</td>\n",
" <td>1</td>\n",
" <td>S1</td>\n",
" <td>1.0</td>\n",
" <td>9.54</td>\n",
" <td>Marketing</td>\n",
" <td>Junior</td>\n",
" <td>6410492</td>\n",
" <td>NaN</td>\n",
" <td>2</td>\n",
" <td>1</td>\n",
" <td>0</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>EM0005</td>\n",
" <td>Kota Jakarta Utara</td>\n",
" <td>Laki-laki</td>\n",
" <td>1987-06-15</td>\n",
" <td>2022-01-31</td>\n",
" <td>2023-02-21</td>\n",
" <td>Single</td>\n",
" <td>0</td>\n",
" <td>SLTA</td>\n",
" <td>1.0</td>\n",
" <td>9.14</td>\n",
" <td>Operations</td>\n",
" <td>Staff</td>\n",
" <td>1208627</td>\n",
" <td>NaN</td>\n",
" <td>2</td>\n",
" <td>2</td>\n",
" <td>1</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" employee_id domisili jenis_kelamin date_of_birth join_date \\\n",
"0 EM0001 Kabupaten Bogor Laki-laki 1970-09-10 2024-01-04 \n",
"1 EM0002 Kota Jakarta Selatan Laki-laki 1980-12-09 2021-01-05 \n",
"2 EM0003 Tangerang Laki-laki 1987-04-25 2022-01-17 \n",
"3 EM0004 Kepulauan Seribu Laki-laki 1975-12-24 2022-01-26 \n",
"4 EM0005 Kota Jakarta Utara Laki-laki 1987-06-15 2022-01-31 \n",
"\n",
" resign_date marriage_stat dependant education absent_90D avg_time_work \\\n",
"0 NaN Married 2 S1 1.0 9.34 \n",
"1 2023-04-22 Married 3 SLTA 11.0 9.86 \n",
"2 2024-01-31 Single 0 D2 3.0 9.66 \n",
"3 NaN Married 1 S1 1.0 9.54 \n",
"4 2023-02-21 Single 0 SLTA 1.0 9.14 \n",
"\n",
" departemen position income total_komp job_satisfaction \\\n",
"0 Engineering & IT Junior 5198046 NaN 2 \n",
"1 Service & Support Staff 1281761 NaN 1 \n",
"2 Creative & Design Staff 4902208 NaN 1 \n",
"3 Marketing Junior 6410492 NaN 2 \n",
"4 Operations Staff 1208627 NaN 2 \n",
"\n",
" performance_rating churn_status \n",
"0 2 0 \n",
"1 2 1 \n",
"2 3 1 \n",
"3 1 0 \n",
"4 2 1 "
]
},
"execution_count": 1,
"metadata": {},
"output_type": "execute_result"
"name": "stderr",
"output_type": "stream",
"text": [
"c:\\Users\\Jesselyn Mu\\anaconda3\\envs\\myenv\\lib\\site-packages\\numpy\\__init__.py:148: UserWarning: mkl-service package failed to import, therefore Intel(R) MKL initialization ensuring its correct out-of-the box operation under condition when Gnu OpenMP had already been loaded by Python process is not assured. Please install mkl-service package, see http://github.com/IntelPython/mkl-service\n",
" from . import _distributor_init\n"
]
},
{
"ename": "ImportError",
"evalue": "Unable to import required dependencies:\nnumpy: \n\nIMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!\n\nImporting the numpy C-extensions failed. This error can happen for\nmany reasons, often due to issues with your setup or how NumPy was\ninstalled.\n\nWe have compiled some common reasons and troubleshooting tips at:\n\n https://numpy.org/devdocs/user/troubleshooting-importerror.html\n\nPlease note and check the following:\n\n * The Python version is: Python3.10 from \"c:\\Users\\Jesselyn Mu\\anaconda3\\envs\\myenv\\python.exe\"\n * The NumPy version is: \"1.21.5\"\n\nand make sure that they are the versions you expect.\nPlease carefully study the documentation linked above for further help.\n\nOriginal error was: No module named 'numpy.core._multiarray_umath'\n",
"output_type": "error",
"traceback": [
"\u001b[1;31m---------------------------------------------------------------------------\u001b[0m",
"\u001b[1;31mImportError\u001b[0m Traceback (most recent call last)",
"Cell \u001b[1;32mIn[1], line 1\u001b[0m\n\u001b[1;32m----> 1\u001b[0m \u001b[38;5;28;01mimport\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mpandas\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;28;01mas\u001b[39;00m\u001b[38;5;250m \u001b[39m\u001b[38;5;21;01mpd\u001b[39;00m\n\u001b[0;32m 2\u001b[0m data \u001b[38;5;241m=\u001b[39m pd\u001b[38;5;241m.\u001b[39mread_csv(\u001b[38;5;124m'\u001b[39m\u001b[38;5;124mD:\u001b[39m\u001b[38;5;124m\\\u001b[39m\u001b[38;5;124mTugas Akhir\u001b[39m\u001b[38;5;124m\\\u001b[39m\u001b[38;5;124mCodingan\u001b[39m\u001b[38;5;124m\\\u001b[39m\u001b[38;5;124mDevelopment\u001b[39m\u001b[38;5;124m\\\u001b[39m\u001b[38;5;124mApp\u001b[39m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124motebook\u001b[39m\u001b[38;5;124m\\\u001b[39m\u001b[38;5;124mpreprocessed_data_train_1.csv\u001b[39m\u001b[38;5;124m'\u001b[39m)\n\u001b[0;32m 3\u001b[0m data\u001b[38;5;241m.\u001b[39mhead()\n",
"File \u001b[1;32mc:\\Users\\Jesselyn Mu\\anaconda3\\envs\\myenv\\lib\\site-packages\\pandas\\__init__.py:16\u001b[0m\n\u001b[0;32m 13\u001b[0m missing_dependencies\u001b[38;5;241m.\u001b[39mappend(\u001b[38;5;124mf\u001b[39m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;132;01m{\u001b[39;00mdependency\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m: \u001b[39m\u001b[38;5;132;01m{\u001b[39;00me\u001b[38;5;132;01m}\u001b[39;00m\u001b[38;5;124m\"\u001b[39m)\n\u001b[0;32m 15\u001b[0m \u001b[38;5;28;01mif\u001b[39;00m missing_dependencies:\n\u001b[1;32m---> 16\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m \u001b[38;5;167;01mImportError\u001b[39;00m(\n\u001b[0;32m 17\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mUnable to import required dependencies:\u001b[39m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m \u001b[38;5;241m+\u001b[39m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;130;01m\\n\u001b[39;00m\u001b[38;5;124m\"\u001b[39m\u001b[38;5;241m.\u001b[39mjoin(missing_dependencies)\n\u001b[0;32m 18\u001b[0m )\n\u001b[0;32m 19\u001b[0m \u001b[38;5;28;01mdel\u001b[39;00m hard_dependencies, dependency, missing_dependencies\n\u001b[0;32m 21\u001b[0m \u001b[38;5;66;03m# numpy compat\u001b[39;00m\n",
"\u001b[1;31mImportError\u001b[0m: Unable to import required dependencies:\nnumpy: \n\nIMPORTANT: PLEASE READ THIS FOR ADVICE ON HOW TO SOLVE THIS ISSUE!\n\nImporting the numpy C-extensions failed. This error can happen for\nmany reasons, often due to issues with your setup or how NumPy was\ninstalled.\n\nWe have compiled some common reasons and troubleshooting tips at:\n\n https://numpy.org/devdocs/user/troubleshooting-importerror.html\n\nPlease note and check the following:\n\n * The Python version is: Python3.10 from \"c:\\Users\\Jesselyn Mu\\anaconda3\\envs\\myenv\\python.exe\"\n * The NumPy version is: \"1.21.5\"\n\nand make sure that they are the versions you expect.\nPlease carefully study the documentation linked above for further help.\n\nOriginal error was: No module named 'numpy.core._multiarray_umath'\n"
]
}
],
"source": [
"import pandas as pd\n",
"data = pd.read_csv('D:\\Tugas Akhir\\Codingan\\Development\\Data\\data_train.csv')\n",
"data = pd.read_csv('D:\\Tugas Akhir\\Codingan\\Development\\App\\notebook\\preprocessed_data_train_1.csv')\n",
"data.head()"
]
},
@ -5375,7 +5210,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.10.16"
}
},
"nbformat": 4,