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

@ -23,224 +23,24 @@
},
"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>...</th>\n",
" <th>active_work_category</th>\n",
" <th>work_stability_score</th>\n",
" <th>married_dependent_ratio</th>\n",
" <th>position_score</th>\n",
" <th>job_income_position_score</th>\n",
" <th>education_score</th>\n",
" <th>education_income_ratio</th>\n",
" <th>weighted_satisfaction_performance</th>\n",
" <th>resign_risk_indicator</th>\n",
" <th>adjusted_work_time</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>2024-10-31</td>\n",
" <td>Married</td>\n",
" <td>2</td>\n",
" <td>S1</td>\n",
" <td>1.0</td>\n",
" <td>...</td>\n",
" <td>Short-term</td>\n",
" <td>5.00</td>\n",
" <td>3</td>\n",
" <td>2</td>\n",
" <td>2599023.0</td>\n",
" <td>5</td>\n",
" <td>1.039609e+06</td>\n",
" <td>2.0</td>\n",
" <td>Medium</td>\n",
" <td>9.329634</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>...</td>\n",
" <td>Mid-term</td>\n",
" <td>2.25</td>\n",
" <td>4</td>\n",
" <td>1</td>\n",
" <td>1281761.0</td>\n",
" <td>1</td>\n",
" <td>1.281761e+06</td>\n",
" <td>1.4</td>\n",
" <td>Medium</td>\n",
" <td>9.815385</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>...</td>\n",
" <td>Mid-term</td>\n",
" <td>6.00</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>4902208.0</td>\n",
" <td>3</td>\n",
" <td>1.634069e+06</td>\n",
" <td>1.8</td>\n",
" <td>Medium</td>\n",
" <td>9.646590</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>2024-10-31</td>\n",
" <td>Married</td>\n",
" <td>1</td>\n",
" <td>S1</td>\n",
" <td>1.0</td>\n",
" <td>...</td>\n",
" <td>Mid-term</td>\n",
" <td>16.50</td>\n",
" <td>2</td>\n",
" <td>2</td>\n",
" <td>3205246.0</td>\n",
" <td>5</td>\n",
" <td>1.282098e+06</td>\n",
" <td>1.6</td>\n",
" <td>Medium</td>\n",
" <td>9.536789</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>...</td>\n",
" <td>Mid-term</td>\n",
" <td>6.00</td>\n",
" <td>1</td>\n",
" <td>1</td>\n",
" <td>1208627.0</td>\n",
" <td>1</td>\n",
" <td>1.208627e+06</td>\n",
" <td>2.0</td>\n",
" <td>Medium</td>\n",
" <td>9.131545</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"<p>5 rows × 37 columns</p>\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 ... \\\n",
"0 2024-10-31 Married 2 S1 1.0 ... \n",
"1 2023-04-22 Married 3 SLTA 11.0 ... \n",
"2 2024-01-31 Single 0 D2 3.0 ... \n",
"3 2024-10-31 Married 1 S1 1.0 ... \n",
"4 2023-02-21 Single 0 SLTA 1.0 ... \n",
"\n",
" active_work_category work_stability_score married_dependent_ratio \\\n",
"0 Short-term 5.00 3 \n",
"1 Mid-term 2.25 4 \n",
"2 Mid-term 6.00 1 \n",
"3 Mid-term 16.50 2 \n",
"4 Mid-term 6.00 1 \n",
"\n",
" position_score job_income_position_score education_score \\\n",
"0 2 2599023.0 5 \n",
"1 1 1281761.0 1 \n",
"2 1 4902208.0 3 \n",
"3 2 3205246.0 5 \n",
"4 1 1208627.0 1 \n",
"\n",
" education_income_ratio weighted_satisfaction_performance \\\n",
"0 1.039609e+06 2.0 \n",
"1 1.281761e+06 1.4 \n",
"2 1.634069e+06 1.8 \n",
"3 1.282098e+06 1.6 \n",
"4 1.208627e+06 2.0 \n",
"\n",
" resign_risk_indicator adjusted_work_time \n",
"0 Medium 9.329634 \n",
"1 Medium 9.815385 \n",
"2 Medium 9.646590 \n",
"3 Medium 9.536789 \n",
"4 Medium 9.131545 \n",
"\n",
"[5 rows x 37 columns]"
]
},
"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 3\u001b[0m df \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;124mData\u001b[39m\u001b[38;5;124m\\\u001b[39m\u001b[38;5;124mpreprocessed_data_train.csv\u001b[39m\u001b[38;5;124m'\u001b[39m)\n\u001b[0;32m 4\u001b[0m df\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": [
@ -2199,7 +1999,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.18"
"version": "3.10.16"
}
},
"nbformat": 4,