diff --git a/Data_manipulation_and_processing.ipynb b/Data_manipulation_and_processing.ipynb new file mode 100644 index 0000000..44e7b56 --- /dev/null +++ b/Data_manipulation_and_processing.ipynb @@ -0,0 +1,5339 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 1, + "id": "f675cb99", + "metadata": {}, + "outputs": [], + "source": [ + "path_of_county = r\"D:\\hackToFuture\\new_data1\\County (2011-20)\"\n", + "path_of_zip = r\"D:\\hackToFuture\\new_data1\\Zipcode(2011-2020)\"\n" + ] + }, + { + "cell_type": "code", + "execution_count": 2, + "id": "4b46570d", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import os\n", + "import numpy as np\n", + "import matplotlib.pyplot as plt\n", + "import seaborn as sns\n", + "\n" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "5dc54f57", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SDOH_2011_COUNTY_1_0.csv\n" + ] + } + ], + "source": [ + "for item in os.listdir(path_of_county):\n", + " print(item)\n", + " data = pd.read_csv(os.path.join(path_of_county, item))\n", + " break" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "dd6eeace", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "SDOH_2011_ZIPCODE_1_0.csv\n" + ] + } + ], + "source": [ + "for item in os.listdir(path_of_zip):\n", + " print(item)\n", + " data2 = pd.read_csv(os.path.join(path_of_zip, item))\n", + " break" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "30b410ae", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
YEARCOUNTYFIPSSTATEFIPSSTATECOUNTYREGIONTERRITORYACS_TOT_POP_WTACS_TOT_POP_US_ABOVE1ACS_TOT_POP_ABOVE5...POS_HOSP_ALC_RATEPOS_TOT_HOSP_PSYCHPOS_HOSP_PSYCH_RATEPOS_TOT_HOSP_CHEMOPOS_HOSP_CHEMO_RATEPOS_TOT_HOSP_EDPOS_HOSP_ED_RATEPOS_PCT_HOSP_FOR_PROFITPOS_PCT_HOSP_NON_PROFITPOS_PCT_HOSP_GOV
0201110011AlabamaAutauga CountySouth053944.053436.050376.0...0.000.00.00.00.001.00.0245.0050.005.00
1201110031AlabamaBaldwin CountySouth0179523.0177221.0168414.0...0.010.00.01.00.013.00.0260.0038.331.67
2201110051AlabamaBarbour CountySouth027546.027117.025877.0...0.000.00.00.00.001.00.0458.8235.295.88
3201110071AlabamaBibb CountySouth022746.022600.021439.0...0.000.00.01.00.041.00.0420.0060.0020.00
4201110091AlabamaBlount CountySouth057140.056552.053539.0...0.000.00.00.00.001.00.0257.1442.860.00
..................................................................
323020117215172Puerto RicoYabucoa MunicipioSouth138138.025525.035686.0...0.000.00.00.00.000.00.000.000.000.00
323120117215372Puerto RicoYauco MunicipioSouth142516.025525.039962.0...0.000.00.00.00.001.00.0266.6733.330.00
323220117801078US Virgin IslandsSt. CroixSouth126095.025525.024450.0...0.001.00.00.00.001.00.0033.3355.5611.11
323320117802078US Virgin IslandsSt. John IslandSouth126095.025525.024450.0...0.000.00.00.00.000.00.000.000.000.00
323420117803078US Virgin IslandsSt. Thomas IslandSouth126095.025525.024450.0...0.001.00.00.00.001.00.0033.3344.4422.22
\n", + "

3235 rows × 716 columns

\n", + "
" + ], + "text/plain": [ + " YEAR COUNTYFIPS STATEFIPS STATE COUNTY \\\n", + "0 2011 1001 1 Alabama Autauga County \n", + "1 2011 1003 1 Alabama Baldwin County \n", + "2 2011 1005 1 Alabama Barbour County \n", + "3 2011 1007 1 Alabama Bibb County \n", + "4 2011 1009 1 Alabama Blount County \n", + "... ... ... ... ... ... \n", + "3230 2011 72151 72 Puerto Rico Yabucoa Municipio \n", + "3231 2011 72153 72 Puerto Rico Yauco Municipio \n", + "3232 2011 78010 78 US Virgin Islands St. Croix \n", + "3233 2011 78020 78 US Virgin Islands St. John Island \n", + "3234 2011 78030 78 US Virgin Islands St. Thomas Island \n", + "\n", + " REGION TERRITORY ACS_TOT_POP_WT ACS_TOT_POP_US_ABOVE1 \\\n", + "0 South 0 53944.0 53436.0 \n", + "1 South 0 179523.0 177221.0 \n", + "2 South 0 27546.0 27117.0 \n", + "3 South 0 22746.0 22600.0 \n", + "4 South 0 57140.0 56552.0 \n", + "... ... ... ... ... \n", + "3230 South 1 38138.0 25525.0 \n", + "3231 South 1 42516.0 25525.0 \n", + "3232 South 1 26095.0 25525.0 \n", + "3233 South 1 26095.0 25525.0 \n", + "3234 South 1 26095.0 25525.0 \n", + "\n", + " ACS_TOT_POP_ABOVE5 ... POS_HOSP_ALC_RATE POS_TOT_HOSP_PSYCH \\\n", + "0 50376.0 ... 0.00 0.0 \n", + "1 168414.0 ... 0.01 0.0 \n", + "2 25877.0 ... 0.00 0.0 \n", + "3 21439.0 ... 0.00 0.0 \n", + "4 53539.0 ... 0.00 0.0 \n", + "... ... ... ... ... \n", + "3230 35686.0 ... 0.00 0.0 \n", + "3231 39962.0 ... 0.00 0.0 \n", + "3232 24450.0 ... 0.00 1.0 \n", + "3233 24450.0 ... 0.00 0.0 \n", + "3234 24450.0 ... 0.00 1.0 \n", + "\n", + " POS_HOSP_PSYCH_RATE POS_TOT_HOSP_CHEMO POS_HOSP_CHEMO_RATE \\\n", + "0 0.0 0.0 0.00 \n", + "1 0.0 1.0 0.01 \n", + "2 0.0 0.0 0.00 \n", + "3 0.0 1.0 0.04 \n", + "4 0.0 0.0 0.00 \n", + "... ... ... ... \n", + "3230 0.0 0.0 0.00 \n", + "3231 0.0 0.0 0.00 \n", + "3232 0.0 0.0 0.00 \n", + "3233 0.0 0.0 0.00 \n", + "3234 0.0 0.0 0.00 \n", + "\n", + " POS_TOT_HOSP_ED POS_HOSP_ED_RATE POS_PCT_HOSP_FOR_PROFIT \\\n", + "0 1.0 0.02 45.00 \n", + "1 3.0 0.02 60.00 \n", + "2 1.0 0.04 58.82 \n", + "3 1.0 0.04 20.00 \n", + "4 1.0 0.02 57.14 \n", + "... ... ... ... \n", + "3230 0.0 0.00 0.00 \n", + "3231 1.0 0.02 66.67 \n", + "3232 1.0 0.00 33.33 \n", + "3233 0.0 0.00 0.00 \n", + "3234 1.0 0.00 33.33 \n", + "\n", + " POS_PCT_HOSP_NON_PROFIT POS_PCT_HOSP_GOV \n", + "0 50.00 5.00 \n", + "1 38.33 1.67 \n", + "2 35.29 5.88 \n", + "3 60.00 20.00 \n", + "4 42.86 0.00 \n", + "... ... ... \n", + "3230 0.00 0.00 \n", + "3231 33.33 0.00 \n", + "3232 55.56 11.11 \n", + "3233 0.00 0.00 \n", + "3234 44.44 22.22 \n", + "\n", + "[3235 rows x 716 columns]" + ] + }, + "execution_count": 5, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "data" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "cc4141ea", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
YEARSTATEFIPSZIPCODEZCTASTATEREGIONTERRITORYPOINT_ZIPACS_TOT_POP_WT_ZCACS_TOT_POP_US_ABOVE1_ZC...CEN_POPDENSITY_ZCERS_RUCA1_2010_ZPERS_RUCA2_2010_ZPPOS_DIST_ED_ZPPOS_DIST_MEDSURG_ICU_ZPPOS_DIST_TRAUMA_ZPPOS_DIST_PED_ICU_ZPPOS_DIST_OBSTETRICS_ZPPOS_DIST_CLINIC_ZPPOS_DIST_ALC_ZP
02011487524549536.186291TexasSouth004860.54766.0...117.932.02.06.377.4016.2928.747.765.7812.685
1201148522249536.186291ArizonaWest004860.54766.0...117.932.02.06.377.4016.2928.747.765.7812.685
2201169583649536.186291CaliforniaWest004860.54766.0...117.932.02.010.3010.3012.8712.8612.779.2910.300
3201129967549536.186291AlaskaWest014860.54766.0...117.9310.010.0209.98210.08333.44229.33209.9838.97210.730
4201148523149536.186291ArizonaWest004860.54766.0...117.932.02.06.377.4016.2928.747.765.7812.685
..................................................................
41163201129992399923.000000AlaskaWest00116.0116.0...117.9310.010.075.5475.54217.5828.7475.5474.61235.360
41164201129992599925.000000AlaskaWest00689.0685.0...117.9310.010.054.4854.48136.7528.7454.486.70199.260
41165201129992699926.000000AlaskaWest001488.01448.0...117.9310.010.016.2416.24198.7028.7416.2414.75247.070
41166201129992799927.000000AlaskaWest0067.067.0...117.9310.010.059.8159.81117.3228.7459.8114.86181.030
41167201129992999929.000000AlaskaWest002321.02314.0...117.9310.010.00.430.43119.1428.740.430.43149.780
\n", + "

41168 rows × 264 columns

\n", + "
" + ], + "text/plain": [ + " YEAR STATEFIPS ZIPCODE ZCTA STATE REGION TERRITORY \\\n", + "0 2011 48 75245 49536.186291 Texas South 0 \n", + "1 2011 4 85222 49536.186291 Arizona West 0 \n", + "2 2011 6 95836 49536.186291 California West 0 \n", + "3 2011 2 99675 49536.186291 Alaska West 0 \n", + "4 2011 4 85231 49536.186291 Arizona West 0 \n", + "... ... ... ... ... ... ... ... \n", + "41163 2011 2 99923 99923.000000 Alaska West 0 \n", + "41164 2011 2 99925 99925.000000 Alaska West 0 \n", + "41165 2011 2 99926 99926.000000 Alaska West 0 \n", + "41166 2011 2 99927 99927.000000 Alaska West 0 \n", + "41167 2011 2 99929 99929.000000 Alaska West 0 \n", + "\n", + " POINT_ZIP ACS_TOT_POP_WT_ZC ACS_TOT_POP_US_ABOVE1_ZC ... \\\n", + "0 0 4860.5 4766.0 ... \n", + "1 0 4860.5 4766.0 ... \n", + "2 0 4860.5 4766.0 ... \n", + "3 1 4860.5 4766.0 ... \n", + "4 0 4860.5 4766.0 ... \n", + "... ... ... ... ... \n", + "41163 0 116.0 116.0 ... \n", + "41164 0 689.0 685.0 ... \n", + "41165 0 1488.0 1448.0 ... \n", + "41166 0 67.0 67.0 ... \n", + "41167 0 2321.0 2314.0 ... \n", + "\n", + " CEN_POPDENSITY_ZC ERS_RUCA1_2010_ZP ERS_RUCA2_2010_ZP \\\n", + "0 117.93 2.0 2.0 \n", + "1 117.93 2.0 2.0 \n", + "2 117.93 2.0 2.0 \n", + "3 117.93 10.0 10.0 \n", + "4 117.93 2.0 2.0 \n", + "... ... ... ... \n", + "41163 117.93 10.0 10.0 \n", + "41164 117.93 10.0 10.0 \n", + "41165 117.93 10.0 10.0 \n", + "41166 117.93 10.0 10.0 \n", + "41167 117.93 10.0 10.0 \n", + "\n", + " POS_DIST_ED_ZP POS_DIST_MEDSURG_ICU_ZP POS_DIST_TRAUMA_ZP \\\n", + "0 6.37 7.40 16.29 \n", + "1 6.37 7.40 16.29 \n", + "2 10.30 10.30 12.87 \n", + "3 209.98 210.08 333.44 \n", + "4 6.37 7.40 16.29 \n", + "... ... ... ... \n", + "41163 75.54 75.54 217.58 \n", + "41164 54.48 54.48 136.75 \n", + "41165 16.24 16.24 198.70 \n", + "41166 59.81 59.81 117.32 \n", + "41167 0.43 0.43 119.14 \n", + "\n", + " POS_DIST_PED_ICU_ZP POS_DIST_OBSTETRICS_ZP POS_DIST_CLINIC_ZP \\\n", + "0 28.74 7.76 5.78 \n", + "1 28.74 7.76 5.78 \n", + "2 12.86 12.77 9.29 \n", + "3 229.33 209.98 38.97 \n", + "4 28.74 7.76 5.78 \n", + "... ... ... ... \n", + "41163 28.74 75.54 74.61 \n", + "41164 28.74 54.48 6.70 \n", + "41165 28.74 16.24 14.75 \n", + "41166 28.74 59.81 14.86 \n", + "41167 28.74 0.43 0.43 \n", + "\n", + " POS_DIST_ALC_ZP \n", + "0 12.685 \n", + "1 12.685 \n", + "2 10.300 \n", + "3 210.730 \n", + "4 12.685 \n", + "... ... \n", + "41163 235.360 \n", + "41164 199.260 \n", + "41165 247.070 \n", + "41166 181.030 \n", + "41167 149.780 \n", + "\n", + "[41168 rows x 264 columns]" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "data2" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "f7217781", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 49, + "id": "df768f4d", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "(212, 979)\n" + ] + } + ], + "source": [ + "sample_zip = data.head(100)\n", + "sample_county = data2.head(100)\n", + "test_merge = pd.merge(sample_zip, sample_county, on='STATE')\n", + "print(test_merge.shape)\n" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "4c26ca1d", + "metadata": {}, + "outputs": [], + "source": [ + "def merge_zip_county(data1, data2, op_path):\n", + " \"\"\"\n", + " Merges two datasets on the 'STATE' column and saves the merged DataFrame to a CSV file.\n", + " \n", + " Parameters:\n", + " data1 (DataFrame): The first DataFrame to merge.\n", + " data2 (DataFrame): The second DataFrame to merge.\n", + " op_path (str): The path where the merged DataFrame will be saved.\n", + " \n", + " Returns:\n", + " None\n", + " \"\"\"\n", + " # Group by 'STATE' and calculate mean for numeric columns in data2\n", + " df_zip_state = data2.groupby('STATE').mean(numeric_only=True).reset_index()\n", + " \n", + " # Merge with county-level data on 'STATE'\n", + " merged_df = pd.merge(df_zip_state, data1, on='STATE', how='inner')\n", + "\n", + " # Save the merged DataFrame to a CSV file\n", + " name = int(data['YEAR'].unique())\n", + " \n", + " merged_df.to_csv(f\"{op_path}/merged_{name}.csv\", index=False)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "id": "30f27adc", + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_25156\\3010961038.py:20: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)\n", + " name = int(data['YEAR'].unique())\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_25156\\3010961038.py:20: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)\n", + " name = int(data['YEAR'].unique())\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_25156\\3010961038.py:20: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)\n", + " name = int(data['YEAR'].unique())\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_25156\\3010961038.py:20: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)\n", + " name = int(data['YEAR'].unique())\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_25156\\3010961038.py:20: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)\n", + " name = int(data['YEAR'].unique())\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_25156\\3010961038.py:20: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)\n", + " name = int(data['YEAR'].unique())\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_25156\\3010961038.py:20: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)\n", + " name = int(data['YEAR'].unique())\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_25156\\3010961038.py:20: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)\n", + " name = int(data['YEAR'].unique())\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_25156\\3010961038.py:20: DeprecationWarning: Conversion of an array with ndim > 0 to a scalar is deprecated, and will error in future. Ensure you extract a single element from your array before performing this operation. (Deprecated NumPy 1.25.)\n", + " name = int(data['YEAR'].unique())\n" + ] + } + ], + "source": [ + "for data, data2 in zip(os.listdir(path_of_county), os.listdir(path_of_zip)):\n", + "\n", + " # Read the CSV files\n", + " data = pd.read_csv(os.path.join(path_of_county, data))\n", + " data2 = pd.read_csv(os.path.join(path_of_zip, data2))\n", + " \n", + " merge_zip_county(data, data2, 'D:\\hackToFuture\\merged_data')" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "id": "ef54aefb", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "839.5\n" + ] + } + ], + "source": [ + "shapes = []\n", + "for data in os.listdir(path_of_county):\n", + " data = pd.read_csv(os.path.join(path_of_county, data))\n", + " # print(\"--\"*20)\n", + " shapes.append(data.shape[1])\n", + " # print(\"--\"*20)\n", + "\n", + "print(np.median(np.array(shapes)))\n" + ] + }, + { + "cell_type": "code", + "execution_count": 28, + "id": "3d39aa49", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "[716, 734, 771, 847, 837, 901, 858, 962, 842, 636]" + ] + }, + "execution_count": 28, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "shapes" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "id": "98907abb", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
STATEYEAR_xSTATEFIPS_xZIPCODEZCTATERRITORY_xPOINT_ZIPACS_TOT_POP_WT_ZCACS_TOT_POP_US_ABOVE1_ZCACS_TOT_POP_ABOVE5_ZC...POS_HOSP_ALC_RATEPOS_TOT_HOSP_PSYCHPOS_HOSP_PSYCH_RATEPOS_TOT_HOSP_CHEMOPOS_HOSP_CHEMO_RATEPOS_TOT_HOSP_EDPOS_HOSP_ED_RATEPOS_PCT_HOSP_FOR_PROFITPOS_PCT_HOSP_NON_PROFITPOS_PCT_HOSP_GOV
0Alabama2011.01.035945.83620735956.7600820.00.2524639582.9217989461.8017248962.705049...0.000.00.00.00.001.00.0245.0050.005.00
1Alabama2011.01.035945.83620735956.7600820.00.2524639582.9217989461.8017248962.705049...0.010.00.01.00.013.00.0260.0038.331.67
2Alabama2011.01.035945.83620735956.7600820.00.2524639582.9217989461.8017248962.705049...0.000.00.00.00.001.00.0458.8235.295.88
3Alabama2011.01.035945.83620735956.7600820.00.2524639582.9217989461.8017248962.705049...0.000.00.01.00.041.00.0420.0060.0020.00
4Alabama2011.01.035945.83620735956.7600820.00.2524639582.9217989461.8017248962.705049...0.000.00.00.00.001.00.0257.1442.860.00
..................................................................
3224Wyoming2011.056.082572.42268082399.2380740.00.1340214923.2293814859.9845364587.085052...0.000.00.00.00.001.00.0255.0035.0010.00
3225Wyoming2011.056.082572.42268082399.2380740.00.1340214923.2293814859.9845364587.085052...0.000.00.00.00.001.00.0522.2211.1166.67
3226Wyoming2011.056.082572.42268082399.2380740.00.1340214923.2293814859.9845364587.085052...0.052.00.10.00.004.00.1938.1061.900.00
3227Wyoming2011.056.082572.42268082399.2380740.00.1340214923.2293814859.9845364587.085052...0.000.00.00.00.002.00.2488.8911.110.00
3228Wyoming2011.056.082572.42268082399.2380740.00.1340214923.2293814859.9845364587.085052...0.140.00.00.00.002.00.280.0037.5062.50
\n", + "

3229 rows × 978 columns

\n", + "
" + ], + "text/plain": [ + " STATE YEAR_x STATEFIPS_x ZIPCODE ZCTA TERRITORY_x \\\n", + "0 Alabama 2011.0 1.0 35945.836207 35956.760082 0.0 \n", + "1 Alabama 2011.0 1.0 35945.836207 35956.760082 0.0 \n", + "2 Alabama 2011.0 1.0 35945.836207 35956.760082 0.0 \n", + "3 Alabama 2011.0 1.0 35945.836207 35956.760082 0.0 \n", + "4 Alabama 2011.0 1.0 35945.836207 35956.760082 0.0 \n", + "... ... ... ... ... ... ... \n", + "3224 Wyoming 2011.0 56.0 82572.422680 82399.238074 0.0 \n", + "3225 Wyoming 2011.0 56.0 82572.422680 82399.238074 0.0 \n", + "3226 Wyoming 2011.0 56.0 82572.422680 82399.238074 0.0 \n", + "3227 Wyoming 2011.0 56.0 82572.422680 82399.238074 0.0 \n", + "3228 Wyoming 2011.0 56.0 82572.422680 82399.238074 0.0 \n", + "\n", + " POINT_ZIP ACS_TOT_POP_WT_ZC ACS_TOT_POP_US_ABOVE1_ZC \\\n", + "0 0.252463 9582.921798 9461.801724 \n", + "1 0.252463 9582.921798 9461.801724 \n", + "2 0.252463 9582.921798 9461.801724 \n", + "3 0.252463 9582.921798 9461.801724 \n", + "4 0.252463 9582.921798 9461.801724 \n", + "... ... ... ... \n", + "3224 0.134021 4923.229381 4859.984536 \n", + "3225 0.134021 4923.229381 4859.984536 \n", + "3226 0.134021 4923.229381 4859.984536 \n", + "3227 0.134021 4923.229381 4859.984536 \n", + "3228 0.134021 4923.229381 4859.984536 \n", + "\n", + " ACS_TOT_POP_ABOVE5_ZC ... POS_HOSP_ALC_RATE POS_TOT_HOSP_PSYCH \\\n", + "0 8962.705049 ... 0.00 0.0 \n", + "1 8962.705049 ... 0.01 0.0 \n", + "2 8962.705049 ... 0.00 0.0 \n", + "3 8962.705049 ... 0.00 0.0 \n", + "4 8962.705049 ... 0.00 0.0 \n", + "... ... ... ... ... \n", + "3224 4587.085052 ... 0.00 0.0 \n", + "3225 4587.085052 ... 0.00 0.0 \n", + "3226 4587.085052 ... 0.05 2.0 \n", + "3227 4587.085052 ... 0.00 0.0 \n", + "3228 4587.085052 ... 0.14 0.0 \n", + "\n", + " POS_HOSP_PSYCH_RATE POS_TOT_HOSP_CHEMO POS_HOSP_CHEMO_RATE \\\n", + "0 0.0 0.0 0.00 \n", + "1 0.0 1.0 0.01 \n", + "2 0.0 0.0 0.00 \n", + "3 0.0 1.0 0.04 \n", + "4 0.0 0.0 0.00 \n", + "... ... ... ... \n", + "3224 0.0 0.0 0.00 \n", + "3225 0.0 0.0 0.00 \n", + "3226 0.1 0.0 0.00 \n", + "3227 0.0 0.0 0.00 \n", + "3228 0.0 0.0 0.00 \n", + "\n", + " POS_TOT_HOSP_ED POS_HOSP_ED_RATE POS_PCT_HOSP_FOR_PROFIT \\\n", + "0 1.0 0.02 45.00 \n", + "1 3.0 0.02 60.00 \n", + "2 1.0 0.04 58.82 \n", + "3 1.0 0.04 20.00 \n", + "4 1.0 0.02 57.14 \n", + "... ... ... ... \n", + "3224 1.0 0.02 55.00 \n", + "3225 1.0 0.05 22.22 \n", + "3226 4.0 0.19 38.10 \n", + "3227 2.0 0.24 88.89 \n", + "3228 2.0 0.28 0.00 \n", + "\n", + " POS_PCT_HOSP_NON_PROFIT POS_PCT_HOSP_GOV \n", + "0 50.00 5.00 \n", + "1 38.33 1.67 \n", + "2 35.29 5.88 \n", + "3 60.00 20.00 \n", + "4 42.86 0.00 \n", + "... ... ... \n", + "3224 35.00 10.00 \n", + "3225 11.11 66.67 \n", + "3226 61.90 0.00 \n", + "3227 11.11 0.00 \n", + "3228 37.50 62.50 \n", + "\n", + "[3229 rows x 978 columns]" + ] + }, + "execution_count": 29, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "pd.read_csv(r\"D:\\hackToFuture\\merged_data\\merged_2011.csv\")" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "80900ba0", + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "import pandas as pd\n", + "\n", + "def find_common_columns_in_merged(directory, prefix='merged_', suffix='.csv'):\n", + " \"\"\"\n", + " Finds common columns in all merged_*.csv files in a given directory.\n", + "\n", + " Parameters:\n", + " directory (str): Path to directory containing merged CSVs.\n", + " prefix (str): Filename prefix to filter relevant CSVs.\n", + " suffix (str): File extension (usually .csv).\n", + "\n", + " Returns:\n", + " set: Common column names across all merged files.\n", + " \"\"\"\n", + " files = [f for f in os.listdir(directory) if f.startswith(prefix) and f.endswith(suffix)]\n", + " common_cols = None\n", + "\n", + " for file in sorted(files):\n", + " file_path = os.path.join(directory, file)\n", + " try:\n", + " df = pd.read_csv(file_path, nrows=5) # Only read top 5 rows for speed\n", + " columns = set(df.columns)\n", + "\n", + " if common_cols is None:\n", + " common_cols = columns\n", + " else:\n", + " common_cols = common_cols.intersection(columns)\n", + "\n", + " print(f\"✅ Loaded {file} with {len(columns)} columns\")\n", + "\n", + " except Exception as e:\n", + " print(f\"❌ Failed to read {file}: {e}\")\n", + "\n", + " print(f\"\\n🔍 Common columns across {len(files)} merged files:\")\n", + " for col in sorted(common_cols):\n", + " print(f\" - {col}\")\n", + "\n", + " return common_cols\n" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "d3731d4c", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "✅ Loaded merged_2011.csv with 978 columns\n", + "✅ Loaded merged_2012.csv with 1006 columns\n", + "✅ Loaded merged_2013.csv with 1070 columns\n", + "✅ Loaded merged_2014.csv with 1146 columns\n", + "✅ Loaded merged_2015.csv with 1134 columns\n", + "✅ Loaded merged_2016.csv with 1198 columns\n", + "✅ Loaded merged_2017.csv with 1174 columns\n", + "✅ Loaded merged_2018.csv with 1289 columns\n", + "✅ Loaded merged_2019.csv with 1165 columns\n", + "\n", + "🔍 Common columns across 9 merged files:\n", + " - ACS_AVG_HH_SIZE\n", + " - ACS_AVG_HH_SIZE_ZC\n", + " - ACS_GINI_INDEX\n", + " - ACS_GINI_INDEX_ZC\n", + " - ACS_MDN_GRNDPRNT_INC\n", + " - ACS_MDN_GRNDPRNT_NO_PRNT_INC\n", + " - ACS_MDN_OWNER_COST_MORTGAGE\n", + " - ACS_MDN_OWNER_COST_MORTGAGE_ZC\n", + " - ACS_MDN_OWNER_COST_NO_MORTG\n", + " - ACS_MDN_OWNER_COST_NO_MORTG_ZC\n", + " - ACS_MEDIAN_AGE\n", + " - ACS_MEDIAN_AGE_FEMALE\n", + " - ACS_MEDIAN_AGE_FEMALE_ZC\n", + " - ACS_MEDIAN_AGE_MALE\n", + " - ACS_MEDIAN_AGE_MALE_ZC\n", + " - ACS_MEDIAN_AGE_ZC\n", + " - ACS_MEDIAN_HH_INC\n", + " - ACS_MEDIAN_HH_INC_BLACK\n", + " - ACS_MEDIAN_HH_INC_HISP\n", + " - ACS_MEDIAN_HH_INC_MULTI\n", + " - ACS_MEDIAN_HH_INC_OTHER\n", + " - ACS_MEDIAN_HH_INC_WHITE\n", + " - ACS_MEDIAN_HH_INC_WHITE_ZC\n", + " - ACS_MEDIAN_HH_INC_ZC\n", + " - ACS_MEDIAN_HOME_VALUE\n", + " - ACS_MEDIAN_HOME_VALUE_ZC\n", + " - ACS_MEDIAN_INC_F\n", + " - ACS_MEDIAN_INC_F_ZC\n", + " - ACS_MEDIAN_INC_M\n", + " - ACS_MEDIAN_INC_M_ZC\n", + " - ACS_MEDIAN_NONVET_INC\n", + " - ACS_MEDIAN_NONVET_INC_ZC\n", + " - ACS_MEDIAN_RENT\n", + " - ACS_MEDIAN_RENT_ZC\n", + " - ACS_MEDIAN_VET_INC\n", + " - ACS_MEDIAN_VET_INC_ZC\n", + " - ACS_MEDIAN_YEAR_BUILT\n", + " - ACS_MEDIAN_YEAR_BUILT_ZC\n", + " - ACS_PCT_10UNITS\n", + " - ACS_PCT_10UNITS_ZC\n", + " - ACS_PCT_1UP_OWNER_1ROOM\n", + " - ACS_PCT_1UP_OWNER_1ROOM_ZC\n", + " - ACS_PCT_1UP_PERS_1ROOM\n", + " - ACS_PCT_1UP_PERS_1ROOM_ZC\n", + " - ACS_PCT_1UP_RENT_1ROOM\n", + " - ACS_PCT_1UP_RENT_1ROOM_ZC\n", + " - ACS_PCT_ADMIN\n", + " - ACS_PCT_ADMIN_ZC\n", + " - ACS_PCT_AGE_0_17\n", + " - ACS_PCT_AGE_0_17_ZC\n", + " - ACS_PCT_AGE_0_4\n", + " - ACS_PCT_AGE_0_4_ZC\n", + " - ACS_PCT_AGE_10_14\n", + " - ACS_PCT_AGE_10_14_ZC\n", + " - ACS_PCT_AGE_15_17\n", + " - ACS_PCT_AGE_15_17_ZC\n", + " - ACS_PCT_AGE_18_29\n", + " - ACS_PCT_AGE_18_29_ZC\n", + " - ACS_PCT_AGE_18_44\n", + " - ACS_PCT_AGE_18_44_ZC\n", + " - ACS_PCT_AGE_30_44\n", + " - ACS_PCT_AGE_30_44_ZC\n", + " - ACS_PCT_AGE_45_64\n", + " - ACS_PCT_AGE_45_64_ZC\n", + " - ACS_PCT_AGE_50_64\n", + " - ACS_PCT_AGE_50_64_ZC\n", + " - ACS_PCT_AGE_5_9\n", + " - ACS_PCT_AGE_5_9_ZC\n", + " - ACS_PCT_AGE_ABOVE65\n", + " - ACS_PCT_AGE_ABOVE65_ZC\n", + " - ACS_PCT_AGE_ABOVE80\n", + " - ACS_PCT_AGE_ABOVE80_ZC\n", + " - ACS_PCT_AIAN\n", + " - ACS_PCT_AIAN_COMB\n", + " - ACS_PCT_AIAN_COMB_ZC\n", + " - ACS_PCT_AIAN_FEMALE\n", + " - ACS_PCT_AIAN_FEMALE_ZC\n", + " - ACS_PCT_AIAN_MALE\n", + " - ACS_PCT_AIAN_MALE_ZC\n", + " - ACS_PCT_AIAN_NONHISP\n", + " - ACS_PCT_AIAN_NONHISP_ZC\n", + " - ACS_PCT_AIAN_ZC\n", + " - ACS_PCT_API_LANG\n", + " - ACS_PCT_API_LANG_ZC\n", + " - ACS_PCT_ARMED_FORCES\n", + " - ACS_PCT_ARMED_FORCES_ZC\n", + " - ACS_PCT_ART\n", + " - ACS_PCT_ART_ZC\n", + " - ACS_PCT_ASIAN\n", + " - ACS_PCT_ASIAN_COMB\n", + " - ACS_PCT_ASIAN_COMB_ZC\n", + " - ACS_PCT_ASIAN_FEMALE\n", + " - ACS_PCT_ASIAN_FEMALE_ZC\n", + " - ACS_PCT_ASIAN_MALE\n", + " - ACS_PCT_ASIAN_MALE_ZC\n", + " - ACS_PCT_ASIAN_NONHISP\n", + " - ACS_PCT_ASIAN_NONHISP_ZC\n", + " - ACS_PCT_ASIAN_ZC\n", + " - ACS_PCT_BACHELOR_DGR\n", + " - ACS_PCT_BACHELOR_DGR_ZC\n", + " - ACS_PCT_BLACK\n", + " - ACS_PCT_BLACK_COMB\n", + " - ACS_PCT_BLACK_COMB_ZC\n", + " - ACS_PCT_BLACK_FEMALE\n", + " - ACS_PCT_BLACK_FEMALE_ZC\n", + " - ACS_PCT_BLACK_MALE\n", + " - ACS_PCT_BLACK_MALE_ZC\n", + " - ACS_PCT_BLACK_NONHISP\n", + " - ACS_PCT_BLACK_NONHISP_ZC\n", + " - ACS_PCT_BLACK_ZC\n", + " - ACS_PCT_CHILDREN_GRANDPARENT\n", + " - ACS_PCT_CHILDREN_GRANDPARENT_ZC\n", + " - ACS_PCT_CHILD_1FAM\n", + " - ACS_PCT_CHILD_1FAM_ZC\n", + " - ACS_PCT_COLLEGE_ASSOCIATE_DGR\n", + " - ACS_PCT_COLLEGE_ASSOCIATE_DGR_ZC\n", + " - ACS_PCT_COMMT_15MIN\n", + " - ACS_PCT_COMMT_15MIN_ZC\n", + " - ACS_PCT_COMMT_29MIN\n", + " - ACS_PCT_COMMT_29MIN_ZC\n", + " - ACS_PCT_COMMT_59MIN\n", + " - ACS_PCT_COMMT_59MIN_ZC\n", + " - ACS_PCT_COMMT_60MINUP\n", + " - ACS_PCT_COMMT_60MINUP_ZC\n", + " - ACS_PCT_CONSTRUCT\n", + " - ACS_PCT_CONSTRUCT_ZC\n", + " - ACS_PCT_CTZ_NATURALIZED\n", + " - ACS_PCT_CTZ_NATURALIZED_ZC\n", + " - ACS_PCT_CTZ_NONUS_BORN\n", + " - ACS_PCT_CTZ_NONUS_BORN_ZC\n", + " - ACS_PCT_CTZ_US_BORN\n", + " - ACS_PCT_CTZ_US_BORN_ZC\n", + " - ACS_PCT_DIF_STATE\n", + " - ACS_PCT_DIF_STATE_ZC\n", + " - ACS_PCT_DIVORCED_F\n", + " - ACS_PCT_DIVORCED_F_ZC\n", + " - ACS_PCT_DIVORCED_M\n", + " - ACS_PCT_DIVORCED_M_ZC\n", + " - ACS_PCT_DRIVE_2WORK\n", + " - ACS_PCT_DRIVE_2WORK_ZC\n", + " - ACS_PCT_EDUC\n", + " - ACS_PCT_EDUC_ZC\n", + " - ACS_PCT_EMPLOYED\n", + " - ACS_PCT_EMPLOYED_ZC\n", + " - ACS_PCT_ENGLISH\n", + " - ACS_PCT_ENGLISH_ZC\n", + " - ACS_PCT_ENGL_NOT_ALL\n", + " - ACS_PCT_ENGL_NOT_ALL_ZC\n", + " - ACS_PCT_ENGL_NOT_WELL\n", + " - ACS_PCT_ENGL_NOT_WELL_ZC\n", + " - ACS_PCT_ENGL_VERY_WELL\n", + " - ACS_PCT_ENGL_VERY_WELL_ZC\n", + " - ACS_PCT_ENGL_WELL\n", + " - ACS_PCT_ENGL_WELL_ZC\n", + " - ACS_PCT_FEMALE\n", + " - ACS_PCT_FEMALE_ZC\n", + " - ACS_PCT_FINANCE\n", + " - ACS_PCT_FINANCE_ZC\n", + " - ACS_PCT_FOREIGN_BORN\n", + " - ACS_PCT_FOREIGN_BORN_ZC\n", + " - ACS_PCT_GOVT\n", + " - ACS_PCT_GOVT_ZC\n", + " - ACS_PCT_GRADUATE_DGR\n", + " - ACS_PCT_GRADUATE_DGR_ZC\n", + " - ACS_PCT_GRANDP_NO_RESPS\n", + " - ACS_PCT_GRANDP_NO_RESPS_ZC\n", + " - ACS_PCT_GRANDP_RESPS_NO_P\n", + " - ACS_PCT_GRANDP_RESPS_NO_P_ZC\n", + " - ACS_PCT_GRANDP_RESPS_P\n", + " - ACS_PCT_GRANDP_RESPS_P_ZC\n", + " - ACS_PCT_GRP_QRT\n", + " - ACS_PCT_GRP_QRT_ZC\n", + " - ACS_PCT_GULFWAR_1990_2001\n", + " - ACS_PCT_GULFWAR_1990_2001_ZC\n", + " - ACS_PCT_GULFWAR_2001\n", + " - ACS_PCT_GULFWAR_2001_ZC\n", + " - ACS_PCT_GULFWAR_VIETNAM\n", + " - ACS_PCT_GULFWAR_VIETNAM_ZC\n", + " - ACS_PCT_HH_1FAM_FOOD_STMP\n", + " - ACS_PCT_HH_1FAM_FOOD_STMP_ZC\n", + " - ACS_PCT_HH_1PERS\n", + " - ACS_PCT_HH_1PERS_ZC\n", + " - ACS_PCT_HH_ABOVE65\n", + " - ACS_PCT_HH_ABOVE65_ZC\n", + " - ACS_PCT_HH_ALONE_ABOVE65\n", + " - ACS_PCT_HH_ALONE_ABOVE65_ZC\n", + " - ACS_PCT_HH_FOOD_STMP\n", + " - ACS_PCT_HH_FOOD_STMP_BLW_POV\n", + " - ACS_PCT_HH_FOOD_STMP_BLW_POV_ZC\n", + " - ACS_PCT_HH_FOOD_STMP_ZC\n", + " - ACS_PCT_HH_INC_10000\n", + " - ACS_PCT_HH_INC_100000\n", + " - ACS_PCT_HH_INC_100000_ZC\n", + " - ACS_PCT_HH_INC_10000_ZC\n", + " - ACS_PCT_HH_INC_14999\n", + " - ACS_PCT_HH_INC_14999_ZC\n", + " - ACS_PCT_HH_INC_24999\n", + " - ACS_PCT_HH_INC_24999_ZC\n", + " - ACS_PCT_HH_INC_49999\n", + " - ACS_PCT_HH_INC_49999_ZC\n", + " - ACS_PCT_HH_INC_99999\n", + " - ACS_PCT_HH_INC_99999_ZC\n", + " - ACS_PCT_HH_KID_1PRNT\n", + " - ACS_PCT_HH_KID_1PRNT_ZC\n", + " - ACS_PCT_HH_LIMIT_ENGLISH\n", + " - ACS_PCT_HH_LIMIT_ENGLISH_ZC\n", + " - ACS_PCT_HH_NO_FD_STMP_BLW_POV\n", + " - ACS_PCT_HH_NO_FD_STMP_BLW_POV_ZC\n", + " - ACS_PCT_HH_PUB_ASSIST\n", + " - ACS_PCT_HH_PUB_ASSIST_ZC\n", + " - ACS_PCT_HISPANIC\n", + " - ACS_PCT_HISPANIC_ZC\n", + " - ACS_PCT_HISP_FEMALE\n", + " - ACS_PCT_HISP_FEMALE_ZC\n", + " - ACS_PCT_HISP_MALE\n", + " - ACS_PCT_HISP_MALE_ZC\n", + " - ACS_PCT_HOUSEHOLDER_AIAN\n", + " - ACS_PCT_HOUSEHOLDER_AIAN_ZC\n", + " - ACS_PCT_HOUSEHOLDER_ASIAN\n", + " - ACS_PCT_HOUSEHOLDER_ASIAN_ZC\n", + " - ACS_PCT_HOUSEHOLDER_BLACK\n", + " - ACS_PCT_HOUSEHOLDER_BLACK_ZC\n", + " - ACS_PCT_HOUSEHOLDER_MULT\n", + " - ACS_PCT_HOUSEHOLDER_MULT_ZC\n", + " - ACS_PCT_HOUSEHOLDER_NHPI\n", + " - ACS_PCT_HOUSEHOLDER_NHPI_ZC\n", + " - ACS_PCT_HOUSEHOLDER_OTHER\n", + " - ACS_PCT_HOUSEHOLDER_OTHER_ZC\n", + " - ACS_PCT_HOUSEHOLDER_WHITE\n", + " - ACS_PCT_HOUSEHOLDER_WHITE_ZC\n", + " - ACS_PCT_HS_GRADUATE\n", + " - ACS_PCT_HS_GRADUATE_ZC\n", + " - ACS_PCT_HU_BOT_TANK_LP_GAS\n", + " - ACS_PCT_HU_BOT_TANK_LP_GAS_ZC\n", + " - ACS_PCT_HU_BUILT_1979\n", + " - ACS_PCT_HU_BUILT_1979_ZC\n", + " - ACS_PCT_HU_COAL\n", + " - ACS_PCT_HU_COAL_ZC\n", + " - ACS_PCT_HU_ELEC\n", + " - ACS_PCT_HU_ELEC_ZC\n", + " - ACS_PCT_HU_KITCHEN\n", + " - ACS_PCT_HU_KITCHEN_ZC\n", + " - ACS_PCT_HU_MOBILE_HOME\n", + " - ACS_PCT_HU_MOBILE_HOME_ZC\n", + " - ACS_PCT_HU_NO_FUEL\n", + " - ACS_PCT_HU_NO_FUEL_ZC\n", + " - ACS_PCT_HU_NO_VEH\n", + " - ACS_PCT_HU_NO_VEH_ZC\n", + " - ACS_PCT_HU_OIL\n", + " - ACS_PCT_HU_OIL_ZC\n", + " - ACS_PCT_HU_OTHER\n", + " - ACS_PCT_HU_OTHER_ZC\n", + " - ACS_PCT_HU_PLUMBING\n", + " - ACS_PCT_HU_PLUMBING_ZC\n", + " - ACS_PCT_HU_SOLAR\n", + " - ACS_PCT_HU_SOLAR_ZC\n", + " - ACS_PCT_HU_UTILITY_GAS\n", + " - ACS_PCT_HU_UTILITY_GAS_ZC\n", + " - ACS_PCT_HU_WOOD\n", + " - ACS_PCT_HU_WOOD_ZC\n", + " - ACS_PCT_INC50\n", + " - ACS_PCT_INC50_ABOVE65\n", + " - ACS_PCT_INC50_ABOVE65_ZC\n", + " - ACS_PCT_INC50_BELOW17\n", + " - ACS_PCT_INC50_BELOW17_ZC\n", + " - ACS_PCT_INC50_ZC\n", + " - ACS_PCT_INFORM\n", + " - ACS_PCT_INFORM_ZC\n", + " - ACS_PCT_IN_COUNTY_MOVE\n", + " - ACS_PCT_IN_COUNTY_MOVE_ZC\n", + " - ACS_PCT_IN_STATE_MOVE\n", + " - ACS_PCT_IN_STATE_MOVE_ZC\n", + " - ACS_PCT_LT_HS\n", + " - ACS_PCT_LT_HS_ZC\n", + " - ACS_PCT_MALE\n", + " - ACS_PCT_MALE_ZC\n", + " - ACS_PCT_MANUFACT\n", + " - ACS_PCT_MANUFACT_ZC\n", + " - ACS_PCT_MARRIED_SP_AB_F\n", + " - ACS_PCT_MARRIED_SP_AB_F_ZC\n", + " - ACS_PCT_MARRIED_SP_AB_M\n", + " - ACS_PCT_MARRIED_SP_AB_M_ZC\n", + " - ACS_PCT_MARRIED_SP_PR_F\n", + " - ACS_PCT_MARRIED_SP_PR_F_ZC\n", + " - ACS_PCT_MARRIED_SP_PR_M\n", + " - ACS_PCT_MARRIED_SP_PR_M_ZC\n", + " - ACS_PCT_MULT_RACE\n", + " - ACS_PCT_MULT_RACE_FEMALE\n", + " - ACS_PCT_MULT_RACE_FEMALE_ZC\n", + " - ACS_PCT_MULT_RACE_MALE\n", + " - ACS_PCT_MULT_RACE_MALE_ZC\n", + " - ACS_PCT_MULT_RACE_NONHISP\n", + " - ACS_PCT_MULT_RACE_NONHISP_ZC\n", + " - ACS_PCT_MULT_RACE_ZC\n", + " - ACS_PCT_NATURE\n", + " - ACS_PCT_NATURE_ZC\n", + " - ACS_PCT_NHPI\n", + " - ACS_PCT_NHPI_COMB\n", + " - ACS_PCT_NHPI_COMB_ZC\n", + " - ACS_PCT_NHPI_NONHISP\n", + " - ACS_PCT_NHPI_NONHISP_ZC\n", + " - ACS_PCT_NHPI_ZC\n", + " - ACS_PCT_NONCTN_1990\n", + " - ACS_PCT_NONCTN_1990_ZC\n", + " - ACS_PCT_NONCTN_1999\n", + " - ACS_PCT_NONCTN_1999_ZC\n", + " - ACS_PCT_NONCTN_2000\n", + " - ACS_PCT_NONCTN_2000_ZC\n", + " - ACS_PCT_NON_CITIZEN\n", + " - ACS_PCT_NON_CITIZEN_ZC\n", + " - ACS_PCT_NOT_LABOR\n", + " - ACS_PCT_NOT_LABOR_ZC\n", + " - ACS_PCT_NO_WORK_NO_SCHL_16_19\n", + " - ACS_PCT_NO_WORK_NO_SCHL_16_19_ZC\n", + " - ACS_PCT_NVR_MARRIED_F\n", + " - ACS_PCT_NVR_MARRIED_F_ZC\n", + " - ACS_PCT_NVR_MARRIED_M\n", + " - ACS_PCT_NVR_MARRIED_M_ZC\n", + " - ACS_PCT_OTHER\n", + " - ACS_PCT_OTHER_FEMALE\n", + " - ACS_PCT_OTHER_FEMALE_ZC\n", + " - ACS_PCT_OTHER_MALE\n", + " - ACS_PCT_OTHER_MALE_ZC\n", + " - ACS_PCT_OTHER_NONHISP\n", + " - ACS_PCT_OTHER_NONHISP_ZC\n", + " - ACS_PCT_OTHER_RACE\n", + " - ACS_PCT_OTHER_RACE_ZC\n", + " - ACS_PCT_OTHER_ZC\n", + " - ACS_PCT_OTH_EURP\n", + " - ACS_PCT_OTH_EURP_ZC\n", + " - ACS_PCT_OTH_LANG\n", + " - ACS_PCT_OTH_LANG_ZC\n", + " - ACS_PCT_OWNER_HU\n", + " - ACS_PCT_OWNER_HU_CHILD\n", + " - ACS_PCT_OWNER_HU_CHILD_ZC\n", + " - ACS_PCT_OWNER_HU_COST_30PCT\n", + " - ACS_PCT_OWNER_HU_COST_30PCT_ZC\n", + " - ACS_PCT_OWNER_HU_COST_50PCT\n", + " - ACS_PCT_OWNER_HU_COST_50PCT_ZC\n", + " - ACS_PCT_OWNER_HU_ZC\n", + " - ACS_PCT_PERSON_INC_100_124\n", + " - ACS_PCT_PERSON_INC_100_124_ZC\n", + " - ACS_PCT_PERSON_INC_125_199\n", + " - ACS_PCT_PERSON_INC_125_199_ZC\n", + " - ACS_PCT_PERSON_INC_ABOVE200\n", + " - ACS_PCT_PERSON_INC_ABOVE200_ZC\n", + " - ACS_PCT_PERSON_INC_BELOW99\n", + " - ACS_PCT_PERSON_INC_BELOW99_ZC\n", + " - ACS_PCT_POSTHS_ED\n", + " - ACS_PCT_POSTHS_ED_ZC\n", + " - ACS_PCT_POV_AIAN\n", + " - ACS_PCT_POV_AIAN_ZC\n", + " - ACS_PCT_POV_ASIAN\n", + " - ACS_PCT_POV_ASIAN_ZC\n", + " - ACS_PCT_POV_BLACK\n", + " - ACS_PCT_POV_BLACK_ZC\n", + " - ACS_PCT_POV_HISPANIC\n", + " - ACS_PCT_POV_HISPANIC_ZC\n", + " - ACS_PCT_POV_MULTI\n", + " - ACS_PCT_POV_MULTI_ZC\n", + " - ACS_PCT_POV_OTHER\n", + " - ACS_PCT_POV_OTHER_ZC\n", + " - ACS_PCT_POV_WHITE\n", + " - ACS_PCT_POV_WHITE_ZC\n", + " - ACS_PCT_PROFESS\n", + " - ACS_PCT_PROFESS_ZC\n", + " - ACS_PCT_PUBL_TRANSIT\n", + " - ACS_PCT_PUBL_TRANSIT_ZC\n", + " - ACS_PCT_PUB_COMMT_15MIN\n", + " - ACS_PCT_PUB_COMMT_15MIN_ZC\n", + " - ACS_PCT_PUB_COMMT_29MIN\n", + " - ACS_PCT_PUB_COMMT_29MIN_ZC\n", + " - ACS_PCT_PUB_COMMT_59MIN\n", + " - ACS_PCT_PUB_COMMT_59MIN_ZC\n", + " - ACS_PCT_PUB_COMMT_60MINUP\n", + " - ACS_PCT_PUB_COMMT_60MINUP_ZC\n", + " - ACS_PCT_PVT_NONPROFIT\n", + " - ACS_PCT_PVT_NONPROFIT_ZC\n", + " - ACS_PCT_PVT_PROFIT\n", + " - ACS_PCT_PVT_PROFIT_ZC\n", + " - ACS_PCT_RENTER_HU\n", + " - ACS_PCT_RENTER_HU_ABOVE65\n", + " - ACS_PCT_RENTER_HU_ABOVE65_ZC\n", + " - ACS_PCT_RENTER_HU_CHILD\n", + " - ACS_PCT_RENTER_HU_CHILD_ZC\n", + " - ACS_PCT_RENTER_HU_COST_30PCT\n", + " - ACS_PCT_RENTER_HU_COST_30PCT_ZC\n", + " - ACS_PCT_RENTER_HU_COST_50PCT\n", + " - ACS_PCT_RENTER_HU_COST_50PCT_ZC\n", + " - ACS_PCT_RENTER_HU_ZC\n", + " - ACS_PCT_RETAIL\n", + " - ACS_PCT_RETAIL_ZC\n", + " - ACS_PCT_SPANISH\n", + " - ACS_PCT_SPANISH_ZC\n", + " - ACS_PCT_TAXICAB_2WORK\n", + " - ACS_PCT_TAXICAB_2WORK_ZC\n", + " - ACS_PCT_TRANSPORT\n", + " - ACS_PCT_TRANSPORT_ZC\n", + " - ACS_PCT_UNEMPLOY\n", + " - ACS_PCT_UNEMPLOY_ZC\n", + " - ACS_PCT_VACANT_HU\n", + " - ACS_PCT_VACANT_HU_ZC\n", + " - ACS_PCT_VET\n", + " - ACS_PCT_VET_BACHELOR\n", + " - ACS_PCT_VET_BACHELOR_ZC\n", + " - ACS_PCT_VET_COLLEGE\n", + " - ACS_PCT_VET_COLLEGE_ZC\n", + " - ACS_PCT_VET_HS\n", + " - ACS_PCT_VET_HS_ZC\n", + " - ACS_PCT_VET_LABOR_FORCE_18_64\n", + " - ACS_PCT_VET_LABOR_FORCE_18_64_ZC\n", + " - ACS_PCT_VET_UNEMPL_18_64\n", + " - ACS_PCT_VET_UNEMPL_18_64_ZC\n", + " - ACS_PCT_VET_ZC\n", + " - ACS_PCT_VIETNAM\n", + " - ACS_PCT_VIETNAM_ZC\n", + " - ACS_PCT_WALK_2WORK\n", + " - ACS_PCT_WALK_2WORK_ZC\n", + " - ACS_PCT_WHITE\n", + " - ACS_PCT_WHITE_COMB\n", + " - ACS_PCT_WHITE_COMB_ZC\n", + " - ACS_PCT_WHITE_FEMALE\n", + " - ACS_PCT_WHITE_FEMALE_ZC\n", + " - ACS_PCT_WHITE_MALE\n", + " - ACS_PCT_WHITE_MALE_ZC\n", + " - ACS_PCT_WHITE_NONHISP\n", + " - ACS_PCT_WHITE_NONHISP_ZC\n", + " - ACS_PCT_WHITE_ZC\n", + " - ACS_PCT_WHOLESALE\n", + " - ACS_PCT_WHOLESALE_ZC\n", + " - ACS_PCT_WIDOWED_F\n", + " - ACS_PCT_WIDOWED_F_ZC\n", + " - ACS_PCT_WIDOWED_M\n", + " - ACS_PCT_WIDOWED_M_ZC\n", + " - ACS_PCT_WORK_NO_CAR\n", + " - ACS_PCT_WORK_NO_CAR_ZC\n", + " - ACS_PCT_WORK_RES_F\n", + " - ACS_PCT_WORK_RES_F_ZC\n", + " - ACS_PCT_WORK_RES_M\n", + " - ACS_PCT_WORK_RES_M_ZC\n", + " - ACS_PER_CAPITA_INC\n", + " - ACS_PER_CAPITA_INC_ZC\n", + " - ACS_TOT_CIVILIAN_LABOR\n", + " - ACS_TOT_CIVILIAN_LABOR_ZC\n", + " - ACS_TOT_CIVIL_EMPLOY_POP\n", + " - ACS_TOT_CIVIL_EMPLOY_POP_ZC\n", + " - ACS_TOT_CIVIL_POP_ABOVE18\n", + " - ACS_TOT_CIVIL_POP_ABOVE18_ZC\n", + " - ACS_TOT_CIVIL_VET_POP\n", + " - ACS_TOT_CIVIL_VET_POP_ABOVE25\n", + " - ACS_TOT_CIVIL_VET_POP_ABOVE25_ZC\n", + " - ACS_TOT_CIVIL_VET_POP_ZC\n", + " - ACS_TOT_GRANDCHILDREN_GP\n", + " - ACS_TOT_GRANDCHILDREN_GP_ZC\n", + " - ACS_TOT_HH\n", + " - ACS_TOT_HH_ZC\n", + " - ACS_TOT_HU\n", + " - ACS_TOT_HU_ZC\n", + " - ACS_TOT_OWN_CHILD_BELOW17\n", + " - ACS_TOT_OWN_CHILD_BELOW17_ZC\n", + " - ACS_TOT_POP_16_19\n", + " - ACS_TOT_POP_16_19_ZC\n", + " - ACS_TOT_POP_ABOVE15\n", + " - ACS_TOT_POP_ABOVE15_ZC\n", + " - ACS_TOT_POP_ABOVE16\n", + " - ACS_TOT_POP_ABOVE16_ZC\n", + " - ACS_TOT_POP_ABOVE25\n", + " - ACS_TOT_POP_ABOVE25_ZC\n", + " - ACS_TOT_POP_ABOVE5\n", + " - ACS_TOT_POP_ABOVE5_ZC\n", + " - ACS_TOT_POP_POV\n", + " - ACS_TOT_POP_POV_ZC\n", + " - ACS_TOT_POP_US_ABOVE1\n", + " - ACS_TOT_POP_US_ABOVE1_ZC\n", + " - ACS_TOT_POP_WT\n", + " - ACS_TOT_POP_WT_ZC\n", + " - ACS_TOT_WORKER_HH\n", + " - ACS_TOT_WORKER_HH_ZC\n", + " - ACS_TOT_WORKER_NWFH\n", + " - ACS_TOT_WORKER_NWFH_ZC\n", + " - AHRF_ADV_NURSES_RATE\n", + " - AHRF_ALLERGY_IMM_RATE\n", + " - AHRF_ANESTH_RATE\n", + " - AHRF_ARBRNE_STNGLT_ISO_ROOM_RATE\n", + " - AHRF_ARBRNE_ST_G_ISO_ROOMS_RATE\n", + " - AHRF_CARDIOVAS_SPEC_RATE\n", + " - AHRF_CHLD_PSYCH_RATE\n", + " - AHRF_CLIN_NURSE_SPEC_RATE\n", + " - AHRF_COLON_SRG_RATE\n", + " - AHRF_DENTISTS_RATE\n", + " - AHRF_DERMATOLOGY_RATE\n", + " - AHRF_ER_MED_RATE\n", + " - AHRF_GASTROENTEROLOGY_RATE\n", + " - AHRF_GENRL_SURG_RATE\n", + " - AHRF_GEN_INTERNAL_MED_RATE\n", + " - AHRF_GEN_PREV_RATE\n", + " - AHRF_HOSPS_RATE\n", + " - AHRF_HOSP_BEDS_LT_RATE\n", + " - AHRF_HOSP_BED_RATE\n", + " - AHRF_IP_DAY_NH_HOSP_RATE\n", + " - AHRF_IP_DAY_STNG_LT_RATE\n", + " - AHRF_IP_DAY_ST_G_HOSP_RATE\n", + " - AHRF_LT_HOSP_RATE\n", + " - AHRF_MCR_BN_READM_RATE\n", + " - AHRF_MDS_RATE\n", + " - AHRF_MED_SPEC_RATE\n", + " - AHRF_NEUROLOGICAL_SURG_RATE\n", + " - AHRF_NH_BED_STNGH_RATE\n", + " - AHRF_NURSE_ANESTH_RATE\n", + " - AHRF_NURSE_MIDWIVES_RATE\n", + " - AHRF_NURSE_PRACT_RATE\n", + " - AHRF_OB_GYN_RATE\n", + " - AHRF_OPHTHALMOLOGY_RATE\n", + " - AHRF_OPRT_ROOM_RATE\n", + " - AHRF_OP_VST_LT_ER_OP_RATE\n", + " - AHRF_OP_VST_ST_G_ER_OP_RATE\n", + " - AHRF_OP_VST_ST_G_OTHR_RATE\n", + " - AHRF_ORTH_SURG_RATE\n", + " - AHRF_OTHER_SPEC_RATE\n", + " - AHRF_OTOLARYNGOLOGY_RATE\n", + " - AHRF_PCT_PRESC_PEN\n", + " - AHRF_PEDIATRICS_RATE\n", + " - AHRF_PHYSICIAN_ASSIST_RATE\n", + " - AHRF_PHYS_PRIMARY_RATE\n", + " - AHRF_PLASTIC_SURG_RATE\n", + " - AHRF_PRESC_ENROLLMENT\n", + " - AHRF_PSYCH_RATE\n", + " - AHRF_PULMONARY_SPEC_RATE\n", + " - AHRF_RADI_RATE\n", + " - AHRF_ST_COMM_HOSP_RATE\n", + " - AHRF_ST_G_HOSP_BED_RATE\n", + " - AHRF_ST_G_HOSP_RATE\n", + " - AHRF_ST_N_G_HOSP_RATE\n", + " - AHRF_SURG_OPRN_IP_RATE\n", + " - AHRF_SURG_OPRN_OP_RATE\n", + " - AHRF_SURG_SPECS_RATE\n", + " - AHRF_THORACIC_SURG_RATE\n", + " - AHRF_TOT_ADV_NURSES\n", + " - AHRF_TOT_ALLERGY_IMM\n", + " - AHRF_TOT_ANESTH\n", + " - AHRF_TOT_ARBRNE_STNGLT_ISO_ROOM\n", + " - AHRF_TOT_ARBRNE_ST_G_ISO_ROOMS\n", + " - AHRF_TOT_CARDIOVAS_SPEC\n", + " - AHRF_TOT_CHLD_PSYCH\n", + " - AHRF_TOT_CLIN_NURSE_SPEC\n", + " - AHRF_TOT_COLON_SRG\n", + " - AHRF_TOT_DENTISTS\n", + " - AHRF_TOT_DERMATOLOGY\n", + " - AHRF_TOT_ER_MED\n", + " - AHRF_TOT_ER_VST_ST_G_HOSP\n", + " - AHRF_TOT_GASTROENTEROLOGY\n", + " - AHRF_TOT_GENRL_SURG\n", + " - AHRF_TOT_GEN_INTERNAL_MED\n", + " - AHRF_TOT_GEN_PREV\n", + " - AHRF_TOT_HOSPS\n", + " - AHRF_TOT_HOSP_ADMISSIONS\n", + " - AHRF_TOT_HOSP_BED\n", + " - AHRF_TOT_HOSP_BEDS_LT\n", + " - AHRF_TOT_LT_HOSP\n", + " - AHRF_TOT_MCR_BN_READM\n", + " - AHRF_TOT_MCR_IP_DAY_ST_G\n", + " - AHRF_TOT_MDCD_IP_DAY_ST_G\n", + " - AHRF_TOT_MDCR_FFS_ACT_COST\n", + " - AHRF_TOT_MDCR_FFS_STD_COST\n", + " - AHRF_TOT_MDS\n", + " - AHRF_TOT_MED_SPEC\n", + " - AHRF_TOT_NEUROLOGICAL_SURG\n", + " - AHRF_TOT_NH_BED_STNGH\n", + " - AHRF_TOT_NURSE_ANESTH\n", + " - AHRF_TOT_NURSE_MIDWIVES\n", + " - AHRF_TOT_NURSE_PRACT\n", + " - AHRF_TOT_N_ST_G_EXP\n", + " - AHRF_TOT_N_ST_G_PAYRLL\n", + " - AHRF_TOT_N_ST_G_PAYRLL_1000\n", + " - AHRF_TOT_OB_GYN\n", + " - AHRF_TOT_OPHTHALMOLOGY\n", + " - AHRF_TOT_OPRT_ROOM\n", + " - AHRF_TOT_ORTH_SURG\n", + " - AHRF_TOT_OTHER_SPEC\n", + " - AHRF_TOT_OTOLARYNGOLOGY\n", + " - AHRF_TOT_OUTPAT_VST_STNGH\n", + " - AHRF_TOT_PEDIATRICS\n", + " - AHRF_TOT_PHYSICIAN_ASSIST\n", + " - AHRF_TOT_PHYS_PRIMARY\n", + " - AHRF_TOT_PLASTIC_SURG\n", + " - AHRF_TOT_PSYCH\n", + " - AHRF_TOT_PULMONARY_SPEC\n", + " - AHRF_TOT_RADI\n", + " - AHRF_TOT_STNG_LT_HOSP_ADMS\n", + " - AHRF_TOT_ST_COMM_HOSP\n", + " - AHRF_TOT_ST_COMM_HOSP_ADMS\n", + " - AHRF_TOT_ST_G_HOSP\n", + " - AHRF_TOT_ST_G_HOSP_ADMS\n", + " - AHRF_TOT_ST_G_HOSP_BED\n", + " - AHRF_TOT_ST_N_G_HOSP\n", + " - AHRF_TOT_SURG_SPECS\n", + " - AHRF_TOT_THORACIC_SURG\n", + " - AHRF_TOT_UROL\n", + " - AHRF_UNEMPLOYED_RATE\n", + " - AHRF_UROL_RATE\n", + " - AHRF_USDA_RUCC_2013\n", + " - AHRF_VET\n", + " - AHRF_VET_FEMALE\n", + " - AHRF_VET_MALE\n", + " - AMFAR_MEDSAFAC_RATE\n", + " - AMFAR_TOT_MEDSAFAC\n", + " - CAF_ADJ_COUNTY_1\n", + " - CAF_ADJ_COUNTY_2\n", + " - CAF_ADJ_COUNTY_3\n", + " - CAF_ADJ_COUNTY_4\n", + " - CAF_ADJ_COUNTY_5\n", + " - CAF_ADJ_COUNTY_6\n", + " - CCBP_ANNUAL_TOT_POP\n", + " - CCBP_CHILD_RATE\n", + " - CCBP_CS_RATE\n", + " - CCBP_FF_RATE\n", + " - CCBP_FSR_RATE\n", + " - CCBP_LARGE_INDUSTRY\n", + " - CCBP_PCT_HEALTH_EMPLOYMENT\n", + " - CCBP_PHYS_RATE\n", + " - CCBP_SA_RATE\n", + " - CCBP_SOGS_RATE\n", + " - CCD_FED_REVENUE_CNA\n", + " - CCD_LOCAL_REVENUE_LUNCH\n", + " - CCD_STATE_REVENUE_LUNCH\n", + " - CCD_TOT_EXPENDITURE\n", + " - CCD_TOT_FED_REVENUE\n", + " - CCD_TOT_LOCAL_REVENUE\n", + " - CCD_TOT_REVENUE\n", + " - CCD_TOT_STATE_REVENUE\n", + " - CCD_TOT_STUDENTS\n", + " - CDCAP_CHLAMYDIA_RATE\n", + " - CDCAP_GONORRHEA_RATE\n", + " - CDCAP_HIVDIAG_F_RATE_ABOVE13\n", + " - CDCAP_HIVDIAG_M_RATE_ABOVE13\n", + " - CDCAP_HIVDIAG_RATE_ABOVE13\n", + " - CDCAP_HIVDIAG_WHT_RATE_ABOVE13\n", + " - CDCAP_HIV_RATE_ABOVE13\n", + " - CDCAP_SYPHILIS_RATE\n", + " - CDCA_HEART_DTH_RATE_ABOVE35\n", + " - CDCA_PREV_DTH_BLACK_RATE_BELOW74\n", + " - CDCA_PREV_DTH_RATE_BELOW74\n", + " - CDCA_PREV_DTH_WHITE_RATE_BELOW74\n", + " - CDCA_STROKE_DTH_RATE_ABOVE35\n", + " - CDCW_DRUG_DTH_RATE\n", + " - CDCW_INJURY_DTH_RATE\n", + " - CDCW_SELFHARM_DTH_RATE\n", + " - CDCW_TOT_POPULATION\n", + " - CDCW_TRANSPORT_DTH_RATE\n", + " - CEN_AREALAND_SQM_COUNTY\n", + " - CEN_AREALAND_SQM_ZC\n", + " - CEN_POPDENSITY_COUNTY\n", + " - CEN_POPDENSITY_ZC\n", + " - COUNTY\n", + " - COUNTYFIPS\n", + " - ERS_RUCA1_2010_ZP\n", + " - ERS_RUCA2_2010_ZP\n", + " - HRSA_MUA_COUNTY\n", + " - LTC_AVG_ACUITY_INDEX\n", + " - LTC_AVG_AGE\n", + " - LTC_AVG_OBS_MEDIAN_LOS\n", + " - LTC_AVG_OBS_REHOSP_RATE\n", + " - LTC_AVG_OBS_SUCCESSFUL_DISC_RATE\n", + " - LTC_AVG_PCT_MEDICAID\n", + " - LTC_AVG_PCT_MEDICARE\n", + " - LTC_AVG_PCT_PRESSURE_ULCER\n", + " - LTC_OCCUPANCY_RATE\n", + " - LTC_PCT_FOR_PROFIT\n", + " - LTC_PCT_MULTI_FAC\n", + " - LTC_PCT_RESD_BLACK\n", + " - LTC_PCT_RESD_HISPANIC\n", + " - LTC_PCT_RESD_WHITE\n", + " - LTC_TOT_BEDS\n", + " - LTC_TOT_BEDS_RATE\n", + " - MGV_PCT_BEN_FFS_BLACK\n", + " - MGV_PCT_BEN_FFS_HISPANIC\n", + " - MGV_PCT_BEN_FFS_WHITE\n", + " - MGV_PCT_MEDICAID\n", + " - MGV_PER_CAPITA_ACTUAL_EM\n", + " - MGV_PER_CAPITA_ACTUAL_HC\n", + " - MGV_PER_CAPITA_ACTUAL_IP\n", + " - MGV_PER_CAPITA_ACTUAL_OP\n", + " - MGV_PER_CAPITA_ACTUAL_PA\n", + " - MGV_PER_CAPITA_STD_EM\n", + " - MGV_PER_CAPITA_STD_HC\n", + " - MGV_PER_CAPITA_STD_IP\n", + " - MGV_PER_CAPITA_STD_OP\n", + " - MGV_PER_CAPITA_STD_PA\n", + " - MGV_TOT_BEN_FFS\n", + " - MGV_TOT_BEN_PART_A_B\n", + " - MP_MEDICARE_ADVTG_ENROLLED\n", + " - MP_MEDICARE_ELIGIBLES\n", + " - MP_PCT_ADVTG_PEN\n", + " - NCHS_URCS_2006\n", + " - NCHS_URCS_2013\n", + " - NEPHTN_HEATIND_100\n", + " - NEPHTN_HEATIND_105\n", + " - NEPHTN_HEATIND_90\n", + " - NEPHTN_HEATIND_95\n", + " - NEPHTN_MAXDROUGHT\n", + " - NEPHTN_NUMDROUGHT\n", + " - NEPHTN_TEMPERATURE_100\n", + " - NEPHTN_TEMPERATURE_105\n", + " - NEPHTN_TEMPERATURE_90\n", + " - NEPHTN_TEMPERATURE_95\n", + " - NOAAC_AVG_TEMP_APR\n", + " - NOAAC_AVG_TEMP_AUG\n", + " - NOAAC_AVG_TEMP_DEC\n", + " - NOAAC_AVG_TEMP_FEB\n", + " - NOAAC_AVG_TEMP_JAN\n", + " - NOAAC_AVG_TEMP_JUL\n", + " - NOAAC_AVG_TEMP_JUN\n", + " - NOAAC_AVG_TEMP_MAR\n", + " - NOAAC_AVG_TEMP_MAY\n", + " - NOAAC_AVG_TEMP_NOV\n", + " - NOAAC_AVG_TEMP_OCT\n", + " - NOAAC_AVG_TEMP_SEP\n", + " - NOAAC_MAX_TEMP_APR\n", + " - NOAAC_MAX_TEMP_AUG\n", + " - NOAAC_MAX_TEMP_DEC\n", + " - NOAAC_MAX_TEMP_FEB\n", + " - NOAAC_MAX_TEMP_JAN\n", + " - NOAAC_MAX_TEMP_JUL\n", + " - NOAAC_MAX_TEMP_JUN\n", + " - NOAAC_MAX_TEMP_MAR\n", + " - NOAAC_MAX_TEMP_MAY\n", + " - NOAAC_MAX_TEMP_NOV\n", + " - NOAAC_MAX_TEMP_OCT\n", + " - NOAAC_MAX_TEMP_SEP\n", + " - NOAAC_MIN_TEMP_APR\n", + " - NOAAC_MIN_TEMP_AUG\n", + " - NOAAC_MIN_TEMP_DEC\n", + " - NOAAC_MIN_TEMP_FEB\n", + " - NOAAC_MIN_TEMP_JAN\n", + " - NOAAC_MIN_TEMP_JUL\n", + " - NOAAC_MIN_TEMP_JUN\n", + " - NOAAC_MIN_TEMP_MAR\n", + " - NOAAC_MIN_TEMP_MAY\n", + " - NOAAC_MIN_TEMP_NOV\n", + " - NOAAC_MIN_TEMP_OCT\n", + " - NOAAC_MIN_TEMP_SEP\n", + " - NOAAC_PRECIPITATION_APR\n", + " - NOAAC_PRECIPITATION_AUG\n", + " - NOAAC_PRECIPITATION_DEC\n", + " - NOAAC_PRECIPITATION_FEB\n", + " - NOAAC_PRECIPITATION_JAN\n", + " - NOAAC_PRECIPITATION_JUL\n", + " - NOAAC_PRECIPITATION_JUN\n", + " - NOAAC_PRECIPITATION_MAR\n", + " - NOAAC_PRECIPITATION_MAY\n", + " - NOAAC_PRECIPITATION_NOV\n", + " - NOAAC_PRECIPITATION_OCT\n", + " - NOAAC_PRECIPITATION_SEP\n", + " - NOAAS_PROPERTY_DAMAGE\n", + " - NOAAS_TOT_DEATHS_DIRECT\n", + " - NOAAS_TOT_DEATHS_INDIRECT\n", + " - NOAAS_TOT_DROUGHT\n", + " - NOAAS_TOT_FLOOD\n", + " - NOAAS_TOT_HAIL\n", + " - NOAAS_TOT_HEAT_EVENTS\n", + " - NOAAS_TOT_HURRICANE_STORM\n", + " - NOAAS_TOT_INJURIES_DIRECT\n", + " - NOAAS_TOT_INJURIES_INDIRECT\n", + " - NOAAS_TOT_STORMEVENT\n", + " - NOAAS_TOT_TORNADO\n", + " - NOAAS_TOT_WILDFIRE\n", + " - NOAAS_TOT_WIND\n", + " - POINT_ZIP\n", + " - POS_ASC_RATE\n", + " - POS_CMHC_RATE\n", + " - POS_DIST_ALC_ZP\n", + " - POS_DIST_CLINIC_ZP\n", + " - POS_DIST_ED_ZP\n", + " - POS_DIST_MEDSURG_ICU_ZP\n", + " - POS_DIST_OBSTETRICS_ZP\n", + " - POS_DIST_PED_ICU_ZP\n", + " - POS_DIST_TRAUMA_ZP\n", + " - POS_FQHC_RATE\n", + " - POS_HHA_RATE\n", + " - POS_HOSPICE_RATE\n", + " - POS_HOSP_ALC_RATE\n", + " - POS_HOSP_BURN_RATE\n", + " - POS_HOSP_CHEMO_RATE\n", + " - POS_HOSP_ED_RATE\n", + " - POS_HOSP_MEDSURG_ICU_RATE\n", + " - POS_HOSP_OBSTETRIC_RATE\n", + " - POS_HOSP_PED_ICU_RATE\n", + " - POS_HOSP_PSYCH_RATE\n", + " - POS_HOSP_REHAB_RATE\n", + " - POS_MAX_DIST_ALC\n", + " - POS_MAX_DIST_CLINIC\n", + " - POS_MAX_DIST_ED\n", + " - POS_MAX_DIST_MEDSURG_ICU\n", + " - POS_MAX_DIST_OBSTETRICS\n", + " - POS_MAX_DIST_PED_ICU\n", + " - POS_MAX_DIST_TRAUMA\n", + " - POS_MEAN_DIST_ALC\n", + " - POS_MEAN_DIST_CLINIC\n", + " - POS_MEAN_DIST_ED\n", + " - POS_MEAN_DIST_MEDSURG_ICU\n", + " - POS_MEAN_DIST_OBSTETRICS\n", + " - POS_MEAN_DIST_PED_ICU\n", + " - POS_MEAN_DIST_TRAUMA\n", + " - POS_MEDIAN_DIST_ALC\n", + " - POS_MEDIAN_DIST_CLINIC\n", + " - POS_MEDIAN_DIST_ED\n", + " - POS_MEDIAN_DIST_MEDSURG_ICU\n", + " - POS_MEDIAN_DIST_OBSTETRICS\n", + " - POS_MEDIAN_DIST_PED_ICU\n", + " - POS_MEDIAN_DIST_TRAUMA\n", + " - POS_MIN_DIST_ALC\n", + " - POS_MIN_DIST_CLINIC\n", + " - POS_MIN_DIST_ED\n", + " - POS_MIN_DIST_MEDSURG_ICU\n", + " - POS_MIN_DIST_OBSTETRICS\n", + " - POS_MIN_DIST_PED_ICU\n", + " - POS_MIN_DIST_TRAUMA\n", + " - POS_NF_BEDS_RATE\n", + " - POS_NF_RATE\n", + " - POS_PCT_HOSP_FOR_PROFIT\n", + " - POS_PCT_HOSP_GOV\n", + " - POS_PCT_HOSP_NON_PROFIT\n", + " - POS_RHC_RATE\n", + " - POS_SNF_BEDS_RATE\n", + " - POS_SNF_RATE\n", + " - POS_TOT_ASC\n", + " - POS_TOT_CMHC\n", + " - POS_TOT_FQHC\n", + " - POS_TOT_HHA\n", + " - POS_TOT_HOSPICE\n", + " - POS_TOT_HOSP_ALC\n", + " - POS_TOT_HOSP_BURN\n", + " - POS_TOT_HOSP_CHEMO\n", + " - POS_TOT_HOSP_ED\n", + " - POS_TOT_HOSP_MEDSURG_ICU\n", + " - POS_TOT_HOSP_OBSTETRIC\n", + " - POS_TOT_HOSP_PED_ICU\n", + " - POS_TOT_HOSP_PSYCH\n", + " - POS_TOT_HOSP_REHAB\n", + " - POS_TOT_NF\n", + " - POS_TOT_NF_BEDS\n", + " - POS_TOT_RHC\n", + " - POS_TOT_SNF\n", + " - POS_TOT_SNF_BEDS\n", + " - REGION\n", + " - SAHIE_PCT_UNINSURED64\n", + " - SAHIE_PCT_UNINSURED64_138FPL\n", + " - SAHIE_PCT_UNINSURED64_200FPL\n", + " - SAHIE_PCT_UNINSURED64_250FPL\n", + " - SAHIE_PCT_UNINSURED64_400FPL\n", + " - SAHIE_TOT_POP64\n", + " - SAIPE_MEDIAN_HH_INCOME\n", + " - SAIPE_PCT_POV\n", + " - SAIPE_PCT_POV_0_17\n", + " - SAIPE_PCT_POV_5_17\n", + " - SAIPE_TOT_POV\n", + " - SAIPE_TOT_POV_0_17\n", + " - SAIPE_TOT_POV_5_17\n", + " - STATE\n", + " - STATEFIPS_x\n", + " - STATEFIPS_y\n", + " - TERRITORY_x\n", + " - TERRITORY_y\n", + " - WUSTL_AVG_PM25\n", + " - YEAR_x\n", + " - YEAR_y\n", + " - ZCTA\n", + " - ZIPCODE\n" + ] + } + ], + "source": [ + "merged_dir = \"D:/hackToFuture/merged_data\"\n", + "common_columns = find_common_columns_in_merged(merged_dir)\n", + "\n", + "with open(\"common_columns.txt\", \"w\") as f:\n", + " for col in sorted(common_columns):\n", + " f.write(f\"{col}\\n\")" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "5dadd150", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "868" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "len(common_columns)" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "8bd0f46b", + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "import pandas as pd\n", + "\n", + "def merge_merged_csvs_on_common_columns(directory, output_filename='final_merged_dataframe.csv'):\n", + " \"\"\"\n", + " Merges all merged_*.csv files using only common columns and saves the final DataFrame.\n", + "\n", + " Parameters:\n", + " directory (str): Path to directory containing merged CSVs.\n", + " output_filename (str): Name of the output CSV file.\n", + " \"\"\"\n", + " # Step 1: Get list of files\n", + " files = [f for f in os.listdir(directory) if f.startswith('merged_') and f.endswith('.csv')]\n", + " files.sort() # Optional: sort by year\n", + "\n", + " # Step 2: Find common columns\n", + " common_cols = None\n", + " for file in files:\n", + " try:\n", + " df = pd.read_csv(os.path.join(directory, file), nrows=5)\n", + " cols = set(df.columns)\n", + " common_cols = cols if common_cols is None else common_cols.intersection(cols)\n", + " except Exception as e:\n", + " print(f\"❌ Failed to read {file}: {e}\")\n", + "\n", + " if not common_cols:\n", + " print(\"❌ No common columns found.\")\n", + " return\n", + "\n", + " print(f\"\\n✅ Common columns ({len(common_cols)}): {sorted(common_cols)}\")\n", + "\n", + " # Step 3: Load full data using only common columns\n", + " final_df_list = []\n", + " for file in files:\n", + " try:\n", + " df = pd.read_csv(os.path.join(directory, file), usecols=common_cols)\n", + " final_df_list.append(df)\n", + " print(f\"✅ Appended {file} with shape {df.shape}\")\n", + " except Exception as e:\n", + " print(f\"❌ Failed to load {file} with common columns: {e}\")\n", + "\n", + " # Step 4: Concatenate all DataFrames\n", + " final_df = pd.concat(final_df_list, ignore_index=True)\n", + " output_path = os.path.join(directory, output_filename)\n", + " final_df.to_csv(output_path, index=False)\n", + "\n", + " print(f\"\\n🎉 Final merged DataFrame shape: {final_df.shape}\")\n", + " print(f\"💾 Saved to: {output_path}\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "75c5dedf", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "✅ Common columns (868): ['ACS_AVG_HH_SIZE', 'ACS_AVG_HH_SIZE_ZC', 'ACS_GINI_INDEX', 'ACS_GINI_INDEX_ZC', 'ACS_MDN_GRNDPRNT_INC', 'ACS_MDN_GRNDPRNT_NO_PRNT_INC', 'ACS_MDN_OWNER_COST_MORTGAGE', 'ACS_MDN_OWNER_COST_MORTGAGE_ZC', 'ACS_MDN_OWNER_COST_NO_MORTG', 'ACS_MDN_OWNER_COST_NO_MORTG_ZC', 'ACS_MEDIAN_AGE', 'ACS_MEDIAN_AGE_FEMALE', 'ACS_MEDIAN_AGE_FEMALE_ZC', 'ACS_MEDIAN_AGE_MALE', 'ACS_MEDIAN_AGE_MALE_ZC', 'ACS_MEDIAN_AGE_ZC', 'ACS_MEDIAN_HH_INC', 'ACS_MEDIAN_HH_INC_BLACK', 'ACS_MEDIAN_HH_INC_HISP', 'ACS_MEDIAN_HH_INC_MULTI', 'ACS_MEDIAN_HH_INC_OTHER', 'ACS_MEDIAN_HH_INC_WHITE', 'ACS_MEDIAN_HH_INC_WHITE_ZC', 'ACS_MEDIAN_HH_INC_ZC', 'ACS_MEDIAN_HOME_VALUE', 'ACS_MEDIAN_HOME_VALUE_ZC', 'ACS_MEDIAN_INC_F', 'ACS_MEDIAN_INC_F_ZC', 'ACS_MEDIAN_INC_M', 'ACS_MEDIAN_INC_M_ZC', 'ACS_MEDIAN_NONVET_INC', 'ACS_MEDIAN_NONVET_INC_ZC', 'ACS_MEDIAN_RENT', 'ACS_MEDIAN_RENT_ZC', 'ACS_MEDIAN_VET_INC', 'ACS_MEDIAN_VET_INC_ZC', 'ACS_MEDIAN_YEAR_BUILT', 'ACS_MEDIAN_YEAR_BUILT_ZC', 'ACS_PCT_10UNITS', 'ACS_PCT_10UNITS_ZC', 'ACS_PCT_1UP_OWNER_1ROOM', 'ACS_PCT_1UP_OWNER_1ROOM_ZC', 'ACS_PCT_1UP_PERS_1ROOM', 'ACS_PCT_1UP_PERS_1ROOM_ZC', 'ACS_PCT_1UP_RENT_1ROOM', 'ACS_PCT_1UP_RENT_1ROOM_ZC', 'ACS_PCT_ADMIN', 'ACS_PCT_ADMIN_ZC', 'ACS_PCT_AGE_0_17', 'ACS_PCT_AGE_0_17_ZC', 'ACS_PCT_AGE_0_4', 'ACS_PCT_AGE_0_4_ZC', 'ACS_PCT_AGE_10_14', 'ACS_PCT_AGE_10_14_ZC', 'ACS_PCT_AGE_15_17', 'ACS_PCT_AGE_15_17_ZC', 'ACS_PCT_AGE_18_29', 'ACS_PCT_AGE_18_29_ZC', 'ACS_PCT_AGE_18_44', 'ACS_PCT_AGE_18_44_ZC', 'ACS_PCT_AGE_30_44', 'ACS_PCT_AGE_30_44_ZC', 'ACS_PCT_AGE_45_64', 'ACS_PCT_AGE_45_64_ZC', 'ACS_PCT_AGE_50_64', 'ACS_PCT_AGE_50_64_ZC', 'ACS_PCT_AGE_5_9', 'ACS_PCT_AGE_5_9_ZC', 'ACS_PCT_AGE_ABOVE65', 'ACS_PCT_AGE_ABOVE65_ZC', 'ACS_PCT_AGE_ABOVE80', 'ACS_PCT_AGE_ABOVE80_ZC', 'ACS_PCT_AIAN', 'ACS_PCT_AIAN_COMB', 'ACS_PCT_AIAN_COMB_ZC', 'ACS_PCT_AIAN_FEMALE', 'ACS_PCT_AIAN_FEMALE_ZC', 'ACS_PCT_AIAN_MALE', 'ACS_PCT_AIAN_MALE_ZC', 'ACS_PCT_AIAN_NONHISP', 'ACS_PCT_AIAN_NONHISP_ZC', 'ACS_PCT_AIAN_ZC', 'ACS_PCT_API_LANG', 'ACS_PCT_API_LANG_ZC', 'ACS_PCT_ARMED_FORCES', 'ACS_PCT_ARMED_FORCES_ZC', 'ACS_PCT_ART', 'ACS_PCT_ART_ZC', 'ACS_PCT_ASIAN', 'ACS_PCT_ASIAN_COMB', 'ACS_PCT_ASIAN_COMB_ZC', 'ACS_PCT_ASIAN_FEMALE', 'ACS_PCT_ASIAN_FEMALE_ZC', 'ACS_PCT_ASIAN_MALE', 'ACS_PCT_ASIAN_MALE_ZC', 'ACS_PCT_ASIAN_NONHISP', 'ACS_PCT_ASIAN_NONHISP_ZC', 'ACS_PCT_ASIAN_ZC', 'ACS_PCT_BACHELOR_DGR', 'ACS_PCT_BACHELOR_DGR_ZC', 'ACS_PCT_BLACK', 'ACS_PCT_BLACK_COMB', 'ACS_PCT_BLACK_COMB_ZC', 'ACS_PCT_BLACK_FEMALE', 'ACS_PCT_BLACK_FEMALE_ZC', 'ACS_PCT_BLACK_MALE', 'ACS_PCT_BLACK_MALE_ZC', 'ACS_PCT_BLACK_NONHISP', 'ACS_PCT_BLACK_NONHISP_ZC', 'ACS_PCT_BLACK_ZC', 'ACS_PCT_CHILDREN_GRANDPARENT', 'ACS_PCT_CHILDREN_GRANDPARENT_ZC', 'ACS_PCT_CHILD_1FAM', 'ACS_PCT_CHILD_1FAM_ZC', 'ACS_PCT_COLLEGE_ASSOCIATE_DGR', 'ACS_PCT_COLLEGE_ASSOCIATE_DGR_ZC', 'ACS_PCT_COMMT_15MIN', 'ACS_PCT_COMMT_15MIN_ZC', 'ACS_PCT_COMMT_29MIN', 'ACS_PCT_COMMT_29MIN_ZC', 'ACS_PCT_COMMT_59MIN', 'ACS_PCT_COMMT_59MIN_ZC', 'ACS_PCT_COMMT_60MINUP', 'ACS_PCT_COMMT_60MINUP_ZC', 'ACS_PCT_CONSTRUCT', 'ACS_PCT_CONSTRUCT_ZC', 'ACS_PCT_CTZ_NATURALIZED', 'ACS_PCT_CTZ_NATURALIZED_ZC', 'ACS_PCT_CTZ_NONUS_BORN', 'ACS_PCT_CTZ_NONUS_BORN_ZC', 'ACS_PCT_CTZ_US_BORN', 'ACS_PCT_CTZ_US_BORN_ZC', 'ACS_PCT_DIF_STATE', 'ACS_PCT_DIF_STATE_ZC', 'ACS_PCT_DIVORCED_F', 'ACS_PCT_DIVORCED_F_ZC', 'ACS_PCT_DIVORCED_M', 'ACS_PCT_DIVORCED_M_ZC', 'ACS_PCT_DRIVE_2WORK', 'ACS_PCT_DRIVE_2WORK_ZC', 'ACS_PCT_EDUC', 'ACS_PCT_EDUC_ZC', 'ACS_PCT_EMPLOYED', 'ACS_PCT_EMPLOYED_ZC', 'ACS_PCT_ENGLISH', 'ACS_PCT_ENGLISH_ZC', 'ACS_PCT_ENGL_NOT_ALL', 'ACS_PCT_ENGL_NOT_ALL_ZC', 'ACS_PCT_ENGL_NOT_WELL', 'ACS_PCT_ENGL_NOT_WELL_ZC', 'ACS_PCT_ENGL_VERY_WELL', 'ACS_PCT_ENGL_VERY_WELL_ZC', 'ACS_PCT_ENGL_WELL', 'ACS_PCT_ENGL_WELL_ZC', 'ACS_PCT_FEMALE', 'ACS_PCT_FEMALE_ZC', 'ACS_PCT_FINANCE', 'ACS_PCT_FINANCE_ZC', 'ACS_PCT_FOREIGN_BORN', 'ACS_PCT_FOREIGN_BORN_ZC', 'ACS_PCT_GOVT', 'ACS_PCT_GOVT_ZC', 'ACS_PCT_GRADUATE_DGR', 'ACS_PCT_GRADUATE_DGR_ZC', 'ACS_PCT_GRANDP_NO_RESPS', 'ACS_PCT_GRANDP_NO_RESPS_ZC', 'ACS_PCT_GRANDP_RESPS_NO_P', 'ACS_PCT_GRANDP_RESPS_NO_P_ZC', 'ACS_PCT_GRANDP_RESPS_P', 'ACS_PCT_GRANDP_RESPS_P_ZC', 'ACS_PCT_GRP_QRT', 'ACS_PCT_GRP_QRT_ZC', 'ACS_PCT_GULFWAR_1990_2001', 'ACS_PCT_GULFWAR_1990_2001_ZC', 'ACS_PCT_GULFWAR_2001', 'ACS_PCT_GULFWAR_2001_ZC', 'ACS_PCT_GULFWAR_VIETNAM', 'ACS_PCT_GULFWAR_VIETNAM_ZC', 'ACS_PCT_HH_1FAM_FOOD_STMP', 'ACS_PCT_HH_1FAM_FOOD_STMP_ZC', 'ACS_PCT_HH_1PERS', 'ACS_PCT_HH_1PERS_ZC', 'ACS_PCT_HH_ABOVE65', 'ACS_PCT_HH_ABOVE65_ZC', 'ACS_PCT_HH_ALONE_ABOVE65', 'ACS_PCT_HH_ALONE_ABOVE65_ZC', 'ACS_PCT_HH_FOOD_STMP', 'ACS_PCT_HH_FOOD_STMP_BLW_POV', 'ACS_PCT_HH_FOOD_STMP_BLW_POV_ZC', 'ACS_PCT_HH_FOOD_STMP_ZC', 'ACS_PCT_HH_INC_10000', 'ACS_PCT_HH_INC_100000', 'ACS_PCT_HH_INC_100000_ZC', 'ACS_PCT_HH_INC_10000_ZC', 'ACS_PCT_HH_INC_14999', 'ACS_PCT_HH_INC_14999_ZC', 'ACS_PCT_HH_INC_24999', 'ACS_PCT_HH_INC_24999_ZC', 'ACS_PCT_HH_INC_49999', 'ACS_PCT_HH_INC_49999_ZC', 'ACS_PCT_HH_INC_99999', 'ACS_PCT_HH_INC_99999_ZC', 'ACS_PCT_HH_KID_1PRNT', 'ACS_PCT_HH_KID_1PRNT_ZC', 'ACS_PCT_HH_LIMIT_ENGLISH', 'ACS_PCT_HH_LIMIT_ENGLISH_ZC', 'ACS_PCT_HH_NO_FD_STMP_BLW_POV', 'ACS_PCT_HH_NO_FD_STMP_BLW_POV_ZC', 'ACS_PCT_HH_PUB_ASSIST', 'ACS_PCT_HH_PUB_ASSIST_ZC', 'ACS_PCT_HISPANIC', 'ACS_PCT_HISPANIC_ZC', 'ACS_PCT_HISP_FEMALE', 'ACS_PCT_HISP_FEMALE_ZC', 'ACS_PCT_HISP_MALE', 'ACS_PCT_HISP_MALE_ZC', 'ACS_PCT_HOUSEHOLDER_AIAN', 'ACS_PCT_HOUSEHOLDER_AIAN_ZC', 'ACS_PCT_HOUSEHOLDER_ASIAN', 'ACS_PCT_HOUSEHOLDER_ASIAN_ZC', 'ACS_PCT_HOUSEHOLDER_BLACK', 'ACS_PCT_HOUSEHOLDER_BLACK_ZC', 'ACS_PCT_HOUSEHOLDER_MULT', 'ACS_PCT_HOUSEHOLDER_MULT_ZC', 'ACS_PCT_HOUSEHOLDER_NHPI', 'ACS_PCT_HOUSEHOLDER_NHPI_ZC', 'ACS_PCT_HOUSEHOLDER_OTHER', 'ACS_PCT_HOUSEHOLDER_OTHER_ZC', 'ACS_PCT_HOUSEHOLDER_WHITE', 'ACS_PCT_HOUSEHOLDER_WHITE_ZC', 'ACS_PCT_HS_GRADUATE', 'ACS_PCT_HS_GRADUATE_ZC', 'ACS_PCT_HU_BOT_TANK_LP_GAS', 'ACS_PCT_HU_BOT_TANK_LP_GAS_ZC', 'ACS_PCT_HU_BUILT_1979', 'ACS_PCT_HU_BUILT_1979_ZC', 'ACS_PCT_HU_COAL', 'ACS_PCT_HU_COAL_ZC', 'ACS_PCT_HU_ELEC', 'ACS_PCT_HU_ELEC_ZC', 'ACS_PCT_HU_KITCHEN', 'ACS_PCT_HU_KITCHEN_ZC', 'ACS_PCT_HU_MOBILE_HOME', 'ACS_PCT_HU_MOBILE_HOME_ZC', 'ACS_PCT_HU_NO_FUEL', 'ACS_PCT_HU_NO_FUEL_ZC', 'ACS_PCT_HU_NO_VEH', 'ACS_PCT_HU_NO_VEH_ZC', 'ACS_PCT_HU_OIL', 'ACS_PCT_HU_OIL_ZC', 'ACS_PCT_HU_OTHER', 'ACS_PCT_HU_OTHER_ZC', 'ACS_PCT_HU_PLUMBING', 'ACS_PCT_HU_PLUMBING_ZC', 'ACS_PCT_HU_SOLAR', 'ACS_PCT_HU_SOLAR_ZC', 'ACS_PCT_HU_UTILITY_GAS', 'ACS_PCT_HU_UTILITY_GAS_ZC', 'ACS_PCT_HU_WOOD', 'ACS_PCT_HU_WOOD_ZC', 'ACS_PCT_INC50', 'ACS_PCT_INC50_ABOVE65', 'ACS_PCT_INC50_ABOVE65_ZC', 'ACS_PCT_INC50_BELOW17', 'ACS_PCT_INC50_BELOW17_ZC', 'ACS_PCT_INC50_ZC', 'ACS_PCT_INFORM', 'ACS_PCT_INFORM_ZC', 'ACS_PCT_IN_COUNTY_MOVE', 'ACS_PCT_IN_COUNTY_MOVE_ZC', 'ACS_PCT_IN_STATE_MOVE', 'ACS_PCT_IN_STATE_MOVE_ZC', 'ACS_PCT_LT_HS', 'ACS_PCT_LT_HS_ZC', 'ACS_PCT_MALE', 'ACS_PCT_MALE_ZC', 'ACS_PCT_MANUFACT', 'ACS_PCT_MANUFACT_ZC', 'ACS_PCT_MARRIED_SP_AB_F', 'ACS_PCT_MARRIED_SP_AB_F_ZC', 'ACS_PCT_MARRIED_SP_AB_M', 'ACS_PCT_MARRIED_SP_AB_M_ZC', 'ACS_PCT_MARRIED_SP_PR_F', 'ACS_PCT_MARRIED_SP_PR_F_ZC', 'ACS_PCT_MARRIED_SP_PR_M', 'ACS_PCT_MARRIED_SP_PR_M_ZC', 'ACS_PCT_MULT_RACE', 'ACS_PCT_MULT_RACE_FEMALE', 'ACS_PCT_MULT_RACE_FEMALE_ZC', 'ACS_PCT_MULT_RACE_MALE', 'ACS_PCT_MULT_RACE_MALE_ZC', 'ACS_PCT_MULT_RACE_NONHISP', 'ACS_PCT_MULT_RACE_NONHISP_ZC', 'ACS_PCT_MULT_RACE_ZC', 'ACS_PCT_NATURE', 'ACS_PCT_NATURE_ZC', 'ACS_PCT_NHPI', 'ACS_PCT_NHPI_COMB', 'ACS_PCT_NHPI_COMB_ZC', 'ACS_PCT_NHPI_NONHISP', 'ACS_PCT_NHPI_NONHISP_ZC', 'ACS_PCT_NHPI_ZC', 'ACS_PCT_NONCTN_1990', 'ACS_PCT_NONCTN_1990_ZC', 'ACS_PCT_NONCTN_1999', 'ACS_PCT_NONCTN_1999_ZC', 'ACS_PCT_NONCTN_2000', 'ACS_PCT_NONCTN_2000_ZC', 'ACS_PCT_NON_CITIZEN', 'ACS_PCT_NON_CITIZEN_ZC', 'ACS_PCT_NOT_LABOR', 'ACS_PCT_NOT_LABOR_ZC', 'ACS_PCT_NO_WORK_NO_SCHL_16_19', 'ACS_PCT_NO_WORK_NO_SCHL_16_19_ZC', 'ACS_PCT_NVR_MARRIED_F', 'ACS_PCT_NVR_MARRIED_F_ZC', 'ACS_PCT_NVR_MARRIED_M', 'ACS_PCT_NVR_MARRIED_M_ZC', 'ACS_PCT_OTHER', 'ACS_PCT_OTHER_FEMALE', 'ACS_PCT_OTHER_FEMALE_ZC', 'ACS_PCT_OTHER_MALE', 'ACS_PCT_OTHER_MALE_ZC', 'ACS_PCT_OTHER_NONHISP', 'ACS_PCT_OTHER_NONHISP_ZC', 'ACS_PCT_OTHER_RACE', 'ACS_PCT_OTHER_RACE_ZC', 'ACS_PCT_OTHER_ZC', 'ACS_PCT_OTH_EURP', 'ACS_PCT_OTH_EURP_ZC', 'ACS_PCT_OTH_LANG', 'ACS_PCT_OTH_LANG_ZC', 'ACS_PCT_OWNER_HU', 'ACS_PCT_OWNER_HU_CHILD', 'ACS_PCT_OWNER_HU_CHILD_ZC', 'ACS_PCT_OWNER_HU_COST_30PCT', 'ACS_PCT_OWNER_HU_COST_30PCT_ZC', 'ACS_PCT_OWNER_HU_COST_50PCT', 'ACS_PCT_OWNER_HU_COST_50PCT_ZC', 'ACS_PCT_OWNER_HU_ZC', 'ACS_PCT_PERSON_INC_100_124', 'ACS_PCT_PERSON_INC_100_124_ZC', 'ACS_PCT_PERSON_INC_125_199', 'ACS_PCT_PERSON_INC_125_199_ZC', 'ACS_PCT_PERSON_INC_ABOVE200', 'ACS_PCT_PERSON_INC_ABOVE200_ZC', 'ACS_PCT_PERSON_INC_BELOW99', 'ACS_PCT_PERSON_INC_BELOW99_ZC', 'ACS_PCT_POSTHS_ED', 'ACS_PCT_POSTHS_ED_ZC', 'ACS_PCT_POV_AIAN', 'ACS_PCT_POV_AIAN_ZC', 'ACS_PCT_POV_ASIAN', 'ACS_PCT_POV_ASIAN_ZC', 'ACS_PCT_POV_BLACK', 'ACS_PCT_POV_BLACK_ZC', 'ACS_PCT_POV_HISPANIC', 'ACS_PCT_POV_HISPANIC_ZC', 'ACS_PCT_POV_MULTI', 'ACS_PCT_POV_MULTI_ZC', 'ACS_PCT_POV_OTHER', 'ACS_PCT_POV_OTHER_ZC', 'ACS_PCT_POV_WHITE', 'ACS_PCT_POV_WHITE_ZC', 'ACS_PCT_PROFESS', 'ACS_PCT_PROFESS_ZC', 'ACS_PCT_PUBL_TRANSIT', 'ACS_PCT_PUBL_TRANSIT_ZC', 'ACS_PCT_PUB_COMMT_15MIN', 'ACS_PCT_PUB_COMMT_15MIN_ZC', 'ACS_PCT_PUB_COMMT_29MIN', 'ACS_PCT_PUB_COMMT_29MIN_ZC', 'ACS_PCT_PUB_COMMT_59MIN', 'ACS_PCT_PUB_COMMT_59MIN_ZC', 'ACS_PCT_PUB_COMMT_60MINUP', 'ACS_PCT_PUB_COMMT_60MINUP_ZC', 'ACS_PCT_PVT_NONPROFIT', 'ACS_PCT_PVT_NONPROFIT_ZC', 'ACS_PCT_PVT_PROFIT', 'ACS_PCT_PVT_PROFIT_ZC', 'ACS_PCT_RENTER_HU', 'ACS_PCT_RENTER_HU_ABOVE65', 'ACS_PCT_RENTER_HU_ABOVE65_ZC', 'ACS_PCT_RENTER_HU_CHILD', 'ACS_PCT_RENTER_HU_CHILD_ZC', 'ACS_PCT_RENTER_HU_COST_30PCT', 'ACS_PCT_RENTER_HU_COST_30PCT_ZC', 'ACS_PCT_RENTER_HU_COST_50PCT', 'ACS_PCT_RENTER_HU_COST_50PCT_ZC', 'ACS_PCT_RENTER_HU_ZC', 'ACS_PCT_RETAIL', 'ACS_PCT_RETAIL_ZC', 'ACS_PCT_SPANISH', 'ACS_PCT_SPANISH_ZC', 'ACS_PCT_TAXICAB_2WORK', 'ACS_PCT_TAXICAB_2WORK_ZC', 'ACS_PCT_TRANSPORT', 'ACS_PCT_TRANSPORT_ZC', 'ACS_PCT_UNEMPLOY', 'ACS_PCT_UNEMPLOY_ZC', 'ACS_PCT_VACANT_HU', 'ACS_PCT_VACANT_HU_ZC', 'ACS_PCT_VET', 'ACS_PCT_VET_BACHELOR', 'ACS_PCT_VET_BACHELOR_ZC', 'ACS_PCT_VET_COLLEGE', 'ACS_PCT_VET_COLLEGE_ZC', 'ACS_PCT_VET_HS', 'ACS_PCT_VET_HS_ZC', 'ACS_PCT_VET_LABOR_FORCE_18_64', 'ACS_PCT_VET_LABOR_FORCE_18_64_ZC', 'ACS_PCT_VET_UNEMPL_18_64', 'ACS_PCT_VET_UNEMPL_18_64_ZC', 'ACS_PCT_VET_ZC', 'ACS_PCT_VIETNAM', 'ACS_PCT_VIETNAM_ZC', 'ACS_PCT_WALK_2WORK', 'ACS_PCT_WALK_2WORK_ZC', 'ACS_PCT_WHITE', 'ACS_PCT_WHITE_COMB', 'ACS_PCT_WHITE_COMB_ZC', 'ACS_PCT_WHITE_FEMALE', 'ACS_PCT_WHITE_FEMALE_ZC', 'ACS_PCT_WHITE_MALE', 'ACS_PCT_WHITE_MALE_ZC', 'ACS_PCT_WHITE_NONHISP', 'ACS_PCT_WHITE_NONHISP_ZC', 'ACS_PCT_WHITE_ZC', 'ACS_PCT_WHOLESALE', 'ACS_PCT_WHOLESALE_ZC', 'ACS_PCT_WIDOWED_F', 'ACS_PCT_WIDOWED_F_ZC', 'ACS_PCT_WIDOWED_M', 'ACS_PCT_WIDOWED_M_ZC', 'ACS_PCT_WORK_NO_CAR', 'ACS_PCT_WORK_NO_CAR_ZC', 'ACS_PCT_WORK_RES_F', 'ACS_PCT_WORK_RES_F_ZC', 'ACS_PCT_WORK_RES_M', 'ACS_PCT_WORK_RES_M_ZC', 'ACS_PER_CAPITA_INC', 'ACS_PER_CAPITA_INC_ZC', 'ACS_TOT_CIVILIAN_LABOR', 'ACS_TOT_CIVILIAN_LABOR_ZC', 'ACS_TOT_CIVIL_EMPLOY_POP', 'ACS_TOT_CIVIL_EMPLOY_POP_ZC', 'ACS_TOT_CIVIL_POP_ABOVE18', 'ACS_TOT_CIVIL_POP_ABOVE18_ZC', 'ACS_TOT_CIVIL_VET_POP', 'ACS_TOT_CIVIL_VET_POP_ABOVE25', 'ACS_TOT_CIVIL_VET_POP_ABOVE25_ZC', 'ACS_TOT_CIVIL_VET_POP_ZC', 'ACS_TOT_GRANDCHILDREN_GP', 'ACS_TOT_GRANDCHILDREN_GP_ZC', 'ACS_TOT_HH', 'ACS_TOT_HH_ZC', 'ACS_TOT_HU', 'ACS_TOT_HU_ZC', 'ACS_TOT_OWN_CHILD_BELOW17', 'ACS_TOT_OWN_CHILD_BELOW17_ZC', 'ACS_TOT_POP_16_19', 'ACS_TOT_POP_16_19_ZC', 'ACS_TOT_POP_ABOVE15', 'ACS_TOT_POP_ABOVE15_ZC', 'ACS_TOT_POP_ABOVE16', 'ACS_TOT_POP_ABOVE16_ZC', 'ACS_TOT_POP_ABOVE25', 'ACS_TOT_POP_ABOVE25_ZC', 'ACS_TOT_POP_ABOVE5', 'ACS_TOT_POP_ABOVE5_ZC', 'ACS_TOT_POP_POV', 'ACS_TOT_POP_POV_ZC', 'ACS_TOT_POP_US_ABOVE1', 'ACS_TOT_POP_US_ABOVE1_ZC', 'ACS_TOT_POP_WT', 'ACS_TOT_POP_WT_ZC', 'ACS_TOT_WORKER_HH', 'ACS_TOT_WORKER_HH_ZC', 'ACS_TOT_WORKER_NWFH', 'ACS_TOT_WORKER_NWFH_ZC', 'AHRF_ADV_NURSES_RATE', 'AHRF_ALLERGY_IMM_RATE', 'AHRF_ANESTH_RATE', 'AHRF_ARBRNE_STNGLT_ISO_ROOM_RATE', 'AHRF_ARBRNE_ST_G_ISO_ROOMS_RATE', 'AHRF_CARDIOVAS_SPEC_RATE', 'AHRF_CHLD_PSYCH_RATE', 'AHRF_CLIN_NURSE_SPEC_RATE', 'AHRF_COLON_SRG_RATE', 'AHRF_DENTISTS_RATE', 'AHRF_DERMATOLOGY_RATE', 'AHRF_ER_MED_RATE', 'AHRF_GASTROENTEROLOGY_RATE', 'AHRF_GENRL_SURG_RATE', 'AHRF_GEN_INTERNAL_MED_RATE', 'AHRF_GEN_PREV_RATE', 'AHRF_HOSPS_RATE', 'AHRF_HOSP_BEDS_LT_RATE', 'AHRF_HOSP_BED_RATE', 'AHRF_IP_DAY_NH_HOSP_RATE', 'AHRF_IP_DAY_STNG_LT_RATE', 'AHRF_IP_DAY_ST_G_HOSP_RATE', 'AHRF_LT_HOSP_RATE', 'AHRF_MCR_BN_READM_RATE', 'AHRF_MDS_RATE', 'AHRF_MED_SPEC_RATE', 'AHRF_NEUROLOGICAL_SURG_RATE', 'AHRF_NH_BED_STNGH_RATE', 'AHRF_NURSE_ANESTH_RATE', 'AHRF_NURSE_MIDWIVES_RATE', 'AHRF_NURSE_PRACT_RATE', 'AHRF_OB_GYN_RATE', 'AHRF_OPHTHALMOLOGY_RATE', 'AHRF_OPRT_ROOM_RATE', 'AHRF_OP_VST_LT_ER_OP_RATE', 'AHRF_OP_VST_ST_G_ER_OP_RATE', 'AHRF_OP_VST_ST_G_OTHR_RATE', 'AHRF_ORTH_SURG_RATE', 'AHRF_OTHER_SPEC_RATE', 'AHRF_OTOLARYNGOLOGY_RATE', 'AHRF_PCT_PRESC_PEN', 'AHRF_PEDIATRICS_RATE', 'AHRF_PHYSICIAN_ASSIST_RATE', 'AHRF_PHYS_PRIMARY_RATE', 'AHRF_PLASTIC_SURG_RATE', 'AHRF_PRESC_ENROLLMENT', 'AHRF_PSYCH_RATE', 'AHRF_PULMONARY_SPEC_RATE', 'AHRF_RADI_RATE', 'AHRF_ST_COMM_HOSP_RATE', 'AHRF_ST_G_HOSP_BED_RATE', 'AHRF_ST_G_HOSP_RATE', 'AHRF_ST_N_G_HOSP_RATE', 'AHRF_SURG_OPRN_IP_RATE', 'AHRF_SURG_OPRN_OP_RATE', 'AHRF_SURG_SPECS_RATE', 'AHRF_THORACIC_SURG_RATE', 'AHRF_TOT_ADV_NURSES', 'AHRF_TOT_ALLERGY_IMM', 'AHRF_TOT_ANESTH', 'AHRF_TOT_ARBRNE_STNGLT_ISO_ROOM', 'AHRF_TOT_ARBRNE_ST_G_ISO_ROOMS', 'AHRF_TOT_CARDIOVAS_SPEC', 'AHRF_TOT_CHLD_PSYCH', 'AHRF_TOT_CLIN_NURSE_SPEC', 'AHRF_TOT_COLON_SRG', 'AHRF_TOT_DENTISTS', 'AHRF_TOT_DERMATOLOGY', 'AHRF_TOT_ER_MED', 'AHRF_TOT_ER_VST_ST_G_HOSP', 'AHRF_TOT_GASTROENTEROLOGY', 'AHRF_TOT_GENRL_SURG', 'AHRF_TOT_GEN_INTERNAL_MED', 'AHRF_TOT_GEN_PREV', 'AHRF_TOT_HOSPS', 'AHRF_TOT_HOSP_ADMISSIONS', 'AHRF_TOT_HOSP_BED', 'AHRF_TOT_HOSP_BEDS_LT', 'AHRF_TOT_LT_HOSP', 'AHRF_TOT_MCR_BN_READM', 'AHRF_TOT_MCR_IP_DAY_ST_G', 'AHRF_TOT_MDCD_IP_DAY_ST_G', 'AHRF_TOT_MDCR_FFS_ACT_COST', 'AHRF_TOT_MDCR_FFS_STD_COST', 'AHRF_TOT_MDS', 'AHRF_TOT_MED_SPEC', 'AHRF_TOT_NEUROLOGICAL_SURG', 'AHRF_TOT_NH_BED_STNGH', 'AHRF_TOT_NURSE_ANESTH', 'AHRF_TOT_NURSE_MIDWIVES', 'AHRF_TOT_NURSE_PRACT', 'AHRF_TOT_N_ST_G_EXP', 'AHRF_TOT_N_ST_G_PAYRLL', 'AHRF_TOT_N_ST_G_PAYRLL_1000', 'AHRF_TOT_OB_GYN', 'AHRF_TOT_OPHTHALMOLOGY', 'AHRF_TOT_OPRT_ROOM', 'AHRF_TOT_ORTH_SURG', 'AHRF_TOT_OTHER_SPEC', 'AHRF_TOT_OTOLARYNGOLOGY', 'AHRF_TOT_OUTPAT_VST_STNGH', 'AHRF_TOT_PEDIATRICS', 'AHRF_TOT_PHYSICIAN_ASSIST', 'AHRF_TOT_PHYS_PRIMARY', 'AHRF_TOT_PLASTIC_SURG', 'AHRF_TOT_PSYCH', 'AHRF_TOT_PULMONARY_SPEC', 'AHRF_TOT_RADI', 'AHRF_TOT_STNG_LT_HOSP_ADMS', 'AHRF_TOT_ST_COMM_HOSP', 'AHRF_TOT_ST_COMM_HOSP_ADMS', 'AHRF_TOT_ST_G_HOSP', 'AHRF_TOT_ST_G_HOSP_ADMS', 'AHRF_TOT_ST_G_HOSP_BED', 'AHRF_TOT_ST_N_G_HOSP', 'AHRF_TOT_SURG_SPECS', 'AHRF_TOT_THORACIC_SURG', 'AHRF_TOT_UROL', 'AHRF_UNEMPLOYED_RATE', 'AHRF_UROL_RATE', 'AHRF_USDA_RUCC_2013', 'AHRF_VET', 'AHRF_VET_FEMALE', 'AHRF_VET_MALE', 'AMFAR_MEDSAFAC_RATE', 'AMFAR_TOT_MEDSAFAC', 'CAF_ADJ_COUNTY_1', 'CAF_ADJ_COUNTY_2', 'CAF_ADJ_COUNTY_3', 'CAF_ADJ_COUNTY_4', 'CAF_ADJ_COUNTY_5', 'CAF_ADJ_COUNTY_6', 'CCBP_ANNUAL_TOT_POP', 'CCBP_CHILD_RATE', 'CCBP_CS_RATE', 'CCBP_FF_RATE', 'CCBP_FSR_RATE', 'CCBP_LARGE_INDUSTRY', 'CCBP_PCT_HEALTH_EMPLOYMENT', 'CCBP_PHYS_RATE', 'CCBP_SA_RATE', 'CCBP_SOGS_RATE', 'CCD_FED_REVENUE_CNA', 'CCD_LOCAL_REVENUE_LUNCH', 'CCD_STATE_REVENUE_LUNCH', 'CCD_TOT_EXPENDITURE', 'CCD_TOT_FED_REVENUE', 'CCD_TOT_LOCAL_REVENUE', 'CCD_TOT_REVENUE', 'CCD_TOT_STATE_REVENUE', 'CCD_TOT_STUDENTS', 'CDCAP_CHLAMYDIA_RATE', 'CDCAP_GONORRHEA_RATE', 'CDCAP_HIVDIAG_F_RATE_ABOVE13', 'CDCAP_HIVDIAG_M_RATE_ABOVE13', 'CDCAP_HIVDIAG_RATE_ABOVE13', 'CDCAP_HIVDIAG_WHT_RATE_ABOVE13', 'CDCAP_HIV_RATE_ABOVE13', 'CDCAP_SYPHILIS_RATE', 'CDCA_HEART_DTH_RATE_ABOVE35', 'CDCA_PREV_DTH_BLACK_RATE_BELOW74', 'CDCA_PREV_DTH_RATE_BELOW74', 'CDCA_PREV_DTH_WHITE_RATE_BELOW74', 'CDCA_STROKE_DTH_RATE_ABOVE35', 'CDCW_DRUG_DTH_RATE', 'CDCW_INJURY_DTH_RATE', 'CDCW_SELFHARM_DTH_RATE', 'CDCW_TOT_POPULATION', 'CDCW_TRANSPORT_DTH_RATE', 'CEN_AREALAND_SQM_COUNTY', 'CEN_AREALAND_SQM_ZC', 'CEN_POPDENSITY_COUNTY', 'CEN_POPDENSITY_ZC', 'COUNTY', 'COUNTYFIPS', 'ERS_RUCA1_2010_ZP', 'ERS_RUCA2_2010_ZP', 'HRSA_MUA_COUNTY', 'LTC_AVG_ACUITY_INDEX', 'LTC_AVG_AGE', 'LTC_AVG_OBS_MEDIAN_LOS', 'LTC_AVG_OBS_REHOSP_RATE', 'LTC_AVG_OBS_SUCCESSFUL_DISC_RATE', 'LTC_AVG_PCT_MEDICAID', 'LTC_AVG_PCT_MEDICARE', 'LTC_AVG_PCT_PRESSURE_ULCER', 'LTC_OCCUPANCY_RATE', 'LTC_PCT_FOR_PROFIT', 'LTC_PCT_MULTI_FAC', 'LTC_PCT_RESD_BLACK', 'LTC_PCT_RESD_HISPANIC', 'LTC_PCT_RESD_WHITE', 'LTC_TOT_BEDS', 'LTC_TOT_BEDS_RATE', 'MGV_PCT_BEN_FFS_BLACK', 'MGV_PCT_BEN_FFS_HISPANIC', 'MGV_PCT_BEN_FFS_WHITE', 'MGV_PCT_MEDICAID', 'MGV_PER_CAPITA_ACTUAL_EM', 'MGV_PER_CAPITA_ACTUAL_HC', 'MGV_PER_CAPITA_ACTUAL_IP', 'MGV_PER_CAPITA_ACTUAL_OP', 'MGV_PER_CAPITA_ACTUAL_PA', 'MGV_PER_CAPITA_STD_EM', 'MGV_PER_CAPITA_STD_HC', 'MGV_PER_CAPITA_STD_IP', 'MGV_PER_CAPITA_STD_OP', 'MGV_PER_CAPITA_STD_PA', 'MGV_TOT_BEN_FFS', 'MGV_TOT_BEN_PART_A_B', 'MP_MEDICARE_ADVTG_ENROLLED', 'MP_MEDICARE_ELIGIBLES', 'MP_PCT_ADVTG_PEN', 'NCHS_URCS_2006', 'NCHS_URCS_2013', 'NEPHTN_HEATIND_100', 'NEPHTN_HEATIND_105', 'NEPHTN_HEATIND_90', 'NEPHTN_HEATIND_95', 'NEPHTN_MAXDROUGHT', 'NEPHTN_NUMDROUGHT', 'NEPHTN_TEMPERATURE_100', 'NEPHTN_TEMPERATURE_105', 'NEPHTN_TEMPERATURE_90', 'NEPHTN_TEMPERATURE_95', 'NOAAC_AVG_TEMP_APR', 'NOAAC_AVG_TEMP_AUG', 'NOAAC_AVG_TEMP_DEC', 'NOAAC_AVG_TEMP_FEB', 'NOAAC_AVG_TEMP_JAN', 'NOAAC_AVG_TEMP_JUL', 'NOAAC_AVG_TEMP_JUN', 'NOAAC_AVG_TEMP_MAR', 'NOAAC_AVG_TEMP_MAY', 'NOAAC_AVG_TEMP_NOV', 'NOAAC_AVG_TEMP_OCT', 'NOAAC_AVG_TEMP_SEP', 'NOAAC_MAX_TEMP_APR', 'NOAAC_MAX_TEMP_AUG', 'NOAAC_MAX_TEMP_DEC', 'NOAAC_MAX_TEMP_FEB', 'NOAAC_MAX_TEMP_JAN', 'NOAAC_MAX_TEMP_JUL', 'NOAAC_MAX_TEMP_JUN', 'NOAAC_MAX_TEMP_MAR', 'NOAAC_MAX_TEMP_MAY', 'NOAAC_MAX_TEMP_NOV', 'NOAAC_MAX_TEMP_OCT', 'NOAAC_MAX_TEMP_SEP', 'NOAAC_MIN_TEMP_APR', 'NOAAC_MIN_TEMP_AUG', 'NOAAC_MIN_TEMP_DEC', 'NOAAC_MIN_TEMP_FEB', 'NOAAC_MIN_TEMP_JAN', 'NOAAC_MIN_TEMP_JUL', 'NOAAC_MIN_TEMP_JUN', 'NOAAC_MIN_TEMP_MAR', 'NOAAC_MIN_TEMP_MAY', 'NOAAC_MIN_TEMP_NOV', 'NOAAC_MIN_TEMP_OCT', 'NOAAC_MIN_TEMP_SEP', 'NOAAC_PRECIPITATION_APR', 'NOAAC_PRECIPITATION_AUG', 'NOAAC_PRECIPITATION_DEC', 'NOAAC_PRECIPITATION_FEB', 'NOAAC_PRECIPITATION_JAN', 'NOAAC_PRECIPITATION_JUL', 'NOAAC_PRECIPITATION_JUN', 'NOAAC_PRECIPITATION_MAR', 'NOAAC_PRECIPITATION_MAY', 'NOAAC_PRECIPITATION_NOV', 'NOAAC_PRECIPITATION_OCT', 'NOAAC_PRECIPITATION_SEP', 'NOAAS_PROPERTY_DAMAGE', 'NOAAS_TOT_DEATHS_DIRECT', 'NOAAS_TOT_DEATHS_INDIRECT', 'NOAAS_TOT_DROUGHT', 'NOAAS_TOT_FLOOD', 'NOAAS_TOT_HAIL', 'NOAAS_TOT_HEAT_EVENTS', 'NOAAS_TOT_HURRICANE_STORM', 'NOAAS_TOT_INJURIES_DIRECT', 'NOAAS_TOT_INJURIES_INDIRECT', 'NOAAS_TOT_STORMEVENT', 'NOAAS_TOT_TORNADO', 'NOAAS_TOT_WILDFIRE', 'NOAAS_TOT_WIND', 'POINT_ZIP', 'POS_ASC_RATE', 'POS_CMHC_RATE', 'POS_DIST_ALC_ZP', 'POS_DIST_CLINIC_ZP', 'POS_DIST_ED_ZP', 'POS_DIST_MEDSURG_ICU_ZP', 'POS_DIST_OBSTETRICS_ZP', 'POS_DIST_PED_ICU_ZP', 'POS_DIST_TRAUMA_ZP', 'POS_FQHC_RATE', 'POS_HHA_RATE', 'POS_HOSPICE_RATE', 'POS_HOSP_ALC_RATE', 'POS_HOSP_BURN_RATE', 'POS_HOSP_CHEMO_RATE', 'POS_HOSP_ED_RATE', 'POS_HOSP_MEDSURG_ICU_RATE', 'POS_HOSP_OBSTETRIC_RATE', 'POS_HOSP_PED_ICU_RATE', 'POS_HOSP_PSYCH_RATE', 'POS_HOSP_REHAB_RATE', 'POS_MAX_DIST_ALC', 'POS_MAX_DIST_CLINIC', 'POS_MAX_DIST_ED', 'POS_MAX_DIST_MEDSURG_ICU', 'POS_MAX_DIST_OBSTETRICS', 'POS_MAX_DIST_PED_ICU', 'POS_MAX_DIST_TRAUMA', 'POS_MEAN_DIST_ALC', 'POS_MEAN_DIST_CLINIC', 'POS_MEAN_DIST_ED', 'POS_MEAN_DIST_MEDSURG_ICU', 'POS_MEAN_DIST_OBSTETRICS', 'POS_MEAN_DIST_PED_ICU', 'POS_MEAN_DIST_TRAUMA', 'POS_MEDIAN_DIST_ALC', 'POS_MEDIAN_DIST_CLINIC', 'POS_MEDIAN_DIST_ED', 'POS_MEDIAN_DIST_MEDSURG_ICU', 'POS_MEDIAN_DIST_OBSTETRICS', 'POS_MEDIAN_DIST_PED_ICU', 'POS_MEDIAN_DIST_TRAUMA', 'POS_MIN_DIST_ALC', 'POS_MIN_DIST_CLINIC', 'POS_MIN_DIST_ED', 'POS_MIN_DIST_MEDSURG_ICU', 'POS_MIN_DIST_OBSTETRICS', 'POS_MIN_DIST_PED_ICU', 'POS_MIN_DIST_TRAUMA', 'POS_NF_BEDS_RATE', 'POS_NF_RATE', 'POS_PCT_HOSP_FOR_PROFIT', 'POS_PCT_HOSP_GOV', 'POS_PCT_HOSP_NON_PROFIT', 'POS_RHC_RATE', 'POS_SNF_BEDS_RATE', 'POS_SNF_RATE', 'POS_TOT_ASC', 'POS_TOT_CMHC', 'POS_TOT_FQHC', 'POS_TOT_HHA', 'POS_TOT_HOSPICE', 'POS_TOT_HOSP_ALC', 'POS_TOT_HOSP_BURN', 'POS_TOT_HOSP_CHEMO', 'POS_TOT_HOSP_ED', 'POS_TOT_HOSP_MEDSURG_ICU', 'POS_TOT_HOSP_OBSTETRIC', 'POS_TOT_HOSP_PED_ICU', 'POS_TOT_HOSP_PSYCH', 'POS_TOT_HOSP_REHAB', 'POS_TOT_NF', 'POS_TOT_NF_BEDS', 'POS_TOT_RHC', 'POS_TOT_SNF', 'POS_TOT_SNF_BEDS', 'REGION', 'SAHIE_PCT_UNINSURED64', 'SAHIE_PCT_UNINSURED64_138FPL', 'SAHIE_PCT_UNINSURED64_200FPL', 'SAHIE_PCT_UNINSURED64_250FPL', 'SAHIE_PCT_UNINSURED64_400FPL', 'SAHIE_TOT_POP64', 'SAIPE_MEDIAN_HH_INCOME', 'SAIPE_PCT_POV', 'SAIPE_PCT_POV_0_17', 'SAIPE_PCT_POV_5_17', 'SAIPE_TOT_POV', 'SAIPE_TOT_POV_0_17', 'SAIPE_TOT_POV_5_17', 'STATE', 'STATEFIPS_x', 'STATEFIPS_y', 'TERRITORY_x', 'TERRITORY_y', 'WUSTL_AVG_PM25', 'YEAR_x', 'YEAR_y', 'ZCTA', 'ZIPCODE']\n", + "✅ Appended merged_2011.csv with shape (3229, 868)\n", + "✅ Appended merged_2012.csv with shape (3229, 868)\n", + "✅ Appended merged_2013.csv with shape (3229, 868)\n", + "✅ Appended merged_2014.csv with shape (3228, 868)\n", + "✅ Appended merged_2015.csv with shape (3228, 868)\n", + "✅ Appended merged_2016.csv with shape (3226, 868)\n", + "✅ Appended merged_2017.csv with shape (3226, 868)\n", + "✅ Appended merged_2018.csv with shape (3226, 868)\n", + "✅ Appended merged_2019.csv with shape (3226, 868)\n", + "\n", + "🎉 Final merged DataFrame shape: (29047, 868)\n", + "💾 Saved to: D:/hackToFuture/merged_data\\final_merged_dataframe.csv\n" + ] + } + ], + "source": [ + "merge_merged_csvs_on_common_columns(\"D:/hackToFuture/merged_data\")\n" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "fa5fd6ef", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "['STATE',\n", + " 'YEAR_x',\n", + " 'STATEFIPS_x',\n", + " 'ZIPCODE',\n", + " 'ZCTA',\n", + " 'TERRITORY_x',\n", + " 'POINT_ZIP',\n", + " 'ACS_TOT_POP_WT_ZC',\n", + " 'ACS_TOT_POP_US_ABOVE1_ZC',\n", + " 'ACS_TOT_POP_ABOVE5_ZC',\n", + " 'ACS_TOT_POP_ABOVE15_ZC',\n", + " 'ACS_TOT_POP_ABOVE16_ZC',\n", + " 'ACS_TOT_POP_16_19_ZC',\n", + " 'ACS_TOT_POP_ABOVE25_ZC',\n", + " 'ACS_TOT_CIVIL_POP_ABOVE18_ZC',\n", + " 'ACS_TOT_CIVIL_VET_POP_ABOVE25_ZC',\n", + " 'ACS_TOT_OWN_CHILD_BELOW17_ZC',\n", + " 'ACS_TOT_WORKER_NWFH_ZC',\n", + " 'ACS_TOT_WORKER_HH_ZC',\n", + " 'ACS_TOT_CIVILIAN_LABOR_ZC',\n", + " 'ACS_TOT_CIVIL_EMPLOY_POP_ZC',\n", + " 'ACS_TOT_POP_POV_ZC',\n", + " 'ACS_TOT_GRANDCHILDREN_GP_ZC',\n", + " 'ACS_TOT_HU_ZC',\n", + " 'ACS_TOT_HH_ZC',\n", + " 'ACS_AVG_HH_SIZE_ZC',\n", + " 'ACS_TOT_CIVIL_VET_POP_ZC',\n", + " 'ACS_PCT_FEMALE_ZC',\n", + " 'ACS_PCT_MALE_ZC',\n", + " 'ACS_PCT_CTZ_NATURALIZED_ZC',\n", + " 'ACS_PCT_CTZ_NONUS_BORN_ZC',\n", + " 'ACS_PCT_CTZ_US_BORN_ZC',\n", + " 'ACS_PCT_FOREIGN_BORN_ZC',\n", + " 'ACS_PCT_NON_CITIZEN_ZC',\n", + " 'ACS_PCT_NONCTN_1990_ZC',\n", + " 'ACS_PCT_NONCTN_1999_ZC',\n", + " 'ACS_PCT_NONCTN_2000_ZC',\n", + " 'ACS_PCT_API_LANG_ZC',\n", + " 'ACS_PCT_ENGL_NOT_ALL_ZC',\n", + " 'ACS_PCT_ENGL_NOT_WELL_ZC',\n", + " 'ACS_PCT_ENGL_VERY_WELL_ZC',\n", + " 'ACS_PCT_ENGL_WELL_ZC',\n", + " 'ACS_PCT_ENGLISH_ZC',\n", + " 'ACS_PCT_HH_LIMIT_ENGLISH_ZC',\n", + " 'ACS_PCT_OTH_EURP_ZC',\n", + " 'ACS_PCT_OTH_LANG_ZC',\n", + " 'ACS_PCT_SPANISH_ZC',\n", + " 'ACS_PCT_GULFWAR_1990_2001_ZC',\n", + " 'ACS_PCT_GULFWAR_2001_ZC',\n", + " 'ACS_PCT_GULFWAR_VIETNAM_ZC',\n", + " 'ACS_PCT_VET_ZC',\n", + " 'ACS_PCT_VIETNAM_ZC',\n", + " 'ACS_MEDIAN_AGE_ZC',\n", + " 'ACS_MEDIAN_AGE_FEMALE_ZC',\n", + " 'ACS_MEDIAN_AGE_MALE_ZC',\n", + " 'ACS_PCT_AGE_0_4_ZC',\n", + " 'ACS_PCT_AGE_5_9_ZC',\n", + " 'ACS_PCT_AGE_10_14_ZC',\n", + " 'ACS_PCT_AGE_15_17_ZC',\n", + " 'ACS_PCT_AGE_0_17_ZC',\n", + " 'ACS_PCT_AGE_18_29_ZC',\n", + " 'ACS_PCT_AGE_18_44_ZC',\n", + " 'ACS_PCT_AGE_30_44_ZC',\n", + " 'ACS_PCT_AGE_45_64_ZC',\n", + " 'ACS_PCT_AGE_50_64_ZC',\n", + " 'ACS_PCT_AGE_ABOVE65_ZC',\n", + " 'ACS_PCT_AGE_ABOVE80_ZC',\n", + " 'ACS_PCT_AIAN_ZC',\n", + " 'ACS_PCT_AIAN_FEMALE_ZC',\n", + " 'ACS_PCT_AIAN_MALE_ZC',\n", + " 'ACS_PCT_AIAN_NONHISP_ZC',\n", + " 'ACS_PCT_ASIAN_ZC',\n", + " 'ACS_PCT_ASIAN_FEMALE_ZC',\n", + " 'ACS_PCT_ASIAN_MALE_ZC',\n", + " 'ACS_PCT_ASIAN_NONHISP_ZC',\n", + " 'ACS_PCT_BLACK_ZC',\n", + " 'ACS_PCT_BLACK_FEMALE_ZC',\n", + " 'ACS_PCT_BLACK_MALE_ZC',\n", + " 'ACS_PCT_BLACK_NONHISP_ZC',\n", + " 'ACS_PCT_HISP_FEMALE_ZC',\n", + " 'ACS_PCT_HISP_MALE_ZC',\n", + " 'ACS_PCT_HISPANIC_ZC',\n", + " 'ACS_PCT_MULT_RACE_ZC',\n", + " 'ACS_PCT_MULT_RACE_FEMALE_ZC',\n", + " 'ACS_PCT_MULT_RACE_MALE_ZC',\n", + " 'ACS_PCT_MULT_RACE_NONHISP_ZC',\n", + " 'ACS_PCT_NHPI_ZC',\n", + " 'ACS_PCT_NHPI_NONHISP_ZC',\n", + " 'ACS_PCT_OTHER_FEMALE_ZC',\n", + " 'ACS_PCT_OTHER_MALE_ZC',\n", + " 'ACS_PCT_OTHER_NONHISP_ZC',\n", + " 'ACS_PCT_OTHER_RACE_ZC',\n", + " 'ACS_PCT_WHITE_ZC',\n", + " 'ACS_PCT_WHITE_FEMALE_ZC',\n", + " 'ACS_PCT_WHITE_MALE_ZC',\n", + " 'ACS_PCT_WHITE_NONHISP_ZC',\n", + " 'ACS_PCT_HOUSEHOLDER_WHITE_ZC',\n", + " 'ACS_PCT_HOUSEHOLDER_BLACK_ZC',\n", + " 'ACS_PCT_HOUSEHOLDER_AIAN_ZC',\n", + " 'ACS_PCT_HOUSEHOLDER_ASIAN_ZC',\n", + " 'ACS_PCT_HOUSEHOLDER_NHPI_ZC',\n", + " 'ACS_PCT_HOUSEHOLDER_OTHER_ZC',\n", + " 'ACS_PCT_HOUSEHOLDER_MULT_ZC',\n", + " 'ACS_PCT_AIAN_COMB_ZC',\n", + " 'ACS_PCT_ASIAN_COMB_ZC',\n", + " 'ACS_PCT_BLACK_COMB_ZC',\n", + " 'ACS_PCT_NHPI_COMB_ZC',\n", + " 'ACS_PCT_WHITE_COMB_ZC',\n", + " 'ACS_PCT_CHILD_1FAM_ZC',\n", + " 'ACS_PCT_CHILDREN_GRANDPARENT_ZC',\n", + " 'ACS_PCT_GRANDP_RESPS_NO_P_ZC',\n", + " 'ACS_PCT_GRANDP_RESPS_P_ZC',\n", + " 'ACS_PCT_GRANDP_NO_RESPS_ZC',\n", + " 'ACS_PCT_HH_KID_1PRNT_ZC',\n", + " 'ACS_PCT_DIVORCED_F_ZC',\n", + " 'ACS_PCT_DIVORCED_M_ZC',\n", + " 'ACS_PCT_MARRIED_SP_AB_F_ZC',\n", + " 'ACS_PCT_MARRIED_SP_AB_M_ZC',\n", + " 'ACS_PCT_MARRIED_SP_PR_F_ZC',\n", + " 'ACS_PCT_MARRIED_SP_PR_M_ZC',\n", + " 'ACS_PCT_NVR_MARRIED_F_ZC',\n", + " 'ACS_PCT_NVR_MARRIED_M_ZC',\n", + " 'ACS_PCT_WIDOWED_F_ZC',\n", + " 'ACS_PCT_WIDOWED_M_ZC',\n", + " 'ACS_PCT_ADMIN_ZC',\n", + " 'ACS_PCT_ARMED_FORCES_ZC',\n", + " 'ACS_PCT_ART_ZC',\n", + " 'ACS_PCT_CONSTRUCT_ZC',\n", + " 'ACS_PCT_EDUC_ZC',\n", + " 'ACS_PCT_EMPLOYED_ZC',\n", + " 'ACS_PCT_FINANCE_ZC',\n", + " 'ACS_PCT_GOVT_ZC',\n", + " 'ACS_PCT_INFORM_ZC',\n", + " 'ACS_PCT_MANUFACT_ZC',\n", + " 'ACS_PCT_NATURE_ZC',\n", + " 'ACS_PCT_NOT_LABOR_ZC',\n", + " 'ACS_PCT_OTHER_ZC',\n", + " 'ACS_PCT_PROFESS_ZC',\n", + " 'ACS_PCT_PVT_NONPROFIT_ZC',\n", + " 'ACS_PCT_PVT_PROFIT_ZC',\n", + " 'ACS_PCT_RETAIL_ZC',\n", + " 'ACS_PCT_TRANSPORT_ZC',\n", + " 'ACS_PCT_UNEMPLOY_ZC',\n", + " 'ACS_PCT_VET_LABOR_FORCE_18_64_ZC',\n", + " 'ACS_PCT_VET_UNEMPL_18_64_ZC',\n", + " 'ACS_PCT_WHOLESALE_ZC',\n", + " 'ACS_PCT_WORK_RES_F_ZC',\n", + " 'ACS_PCT_WORK_RES_M_ZC',\n", + " 'ACS_GINI_INDEX_ZC',\n", + " 'ACS_MEDIAN_HH_INC_WHITE_ZC',\n", + " 'ACS_MEDIAN_HH_INC_ZC',\n", + " 'ACS_MEDIAN_INC_F_ZC',\n", + " 'ACS_MEDIAN_INC_M_ZC',\n", + " 'ACS_MEDIAN_NONVET_INC_ZC',\n", + " 'ACS_MEDIAN_VET_INC_ZC',\n", + " 'ACS_PCT_INC50_ABOVE65_ZC',\n", + " 'ACS_PCT_INC50_BELOW17_ZC',\n", + " 'ACS_PCT_HH_INC_10000_ZC',\n", + " 'ACS_PCT_HH_INC_100000_ZC',\n", + " 'ACS_PCT_HH_INC_14999_ZC',\n", + " 'ACS_PCT_HH_INC_24999_ZC',\n", + " 'ACS_PCT_HH_INC_49999_ZC',\n", + " 'ACS_PCT_HH_INC_99999_ZC',\n", + " 'ACS_PCT_INC50_ZC',\n", + " 'ACS_PCT_PERSON_INC_100_124_ZC',\n", + " 'ACS_PCT_PERSON_INC_125_199_ZC',\n", + " 'ACS_PCT_PERSON_INC_ABOVE200_ZC',\n", + " 'ACS_PCT_PERSON_INC_BELOW99_ZC',\n", + " 'ACS_PER_CAPITA_INC_ZC',\n", + " 'ACS_PCT_POV_AIAN_ZC',\n", + " 'ACS_PCT_POV_ASIAN_ZC',\n", + " 'ACS_PCT_POV_BLACK_ZC',\n", + " 'ACS_PCT_POV_HISPANIC_ZC',\n", + " 'ACS_PCT_POV_MULTI_ZC',\n", + " 'ACS_PCT_POV_OTHER_ZC',\n", + " 'ACS_PCT_POV_WHITE_ZC',\n", + " 'ACS_PCT_HH_1FAM_FOOD_STMP_ZC',\n", + " 'ACS_PCT_HH_FOOD_STMP_ZC',\n", + " 'ACS_PCT_HH_FOOD_STMP_BLW_POV_ZC',\n", + " 'ACS_PCT_HH_NO_FD_STMP_BLW_POV_ZC',\n", + " 'ACS_PCT_HH_PUB_ASSIST_ZC',\n", + " 'ACS_PCT_COLLEGE_ASSOCIATE_DGR_ZC',\n", + " 'ACS_PCT_BACHELOR_DGR_ZC',\n", + " 'ACS_PCT_NO_WORK_NO_SCHL_16_19_ZC',\n", + " 'ACS_PCT_GRADUATE_DGR_ZC',\n", + " 'ACS_PCT_HS_GRADUATE_ZC',\n", + " 'ACS_PCT_LT_HS_ZC',\n", + " 'ACS_PCT_POSTHS_ED_ZC',\n", + " 'ACS_PCT_VET_BACHELOR_ZC',\n", + " 'ACS_PCT_VET_COLLEGE_ZC',\n", + " 'ACS_PCT_VET_HS_ZC',\n", + " 'ACS_MEDIAN_HOME_VALUE_ZC',\n", + " 'ACS_MEDIAN_RENT_ZC',\n", + " 'ACS_MDN_OWNER_COST_MORTGAGE_ZC',\n", + " 'ACS_MDN_OWNER_COST_NO_MORTG_ZC',\n", + " 'ACS_MEDIAN_YEAR_BUILT_ZC',\n", + " 'ACS_PCT_10UNITS_ZC',\n", + " 'ACS_PCT_1UP_OWNER_1ROOM_ZC',\n", + " 'ACS_PCT_1UP_PERS_1ROOM_ZC',\n", + " 'ACS_PCT_1UP_RENT_1ROOM_ZC',\n", + " 'ACS_PCT_HU_BUILT_1979_ZC',\n", + " 'ACS_PCT_DIF_STATE_ZC',\n", + " 'ACS_PCT_GRP_QRT_ZC',\n", + " 'ACS_PCT_HH_1PERS_ZC',\n", + " 'ACS_PCT_HH_ABOVE65_ZC',\n", + " 'ACS_PCT_HH_ALONE_ABOVE65_ZC',\n", + " 'ACS_PCT_HU_NO_FUEL_ZC',\n", + " 'ACS_PCT_HU_UTILITY_GAS_ZC',\n", + " 'ACS_PCT_HU_BOT_TANK_LP_GAS_ZC',\n", + " 'ACS_PCT_HU_OIL_ZC',\n", + " 'ACS_PCT_HU_WOOD_ZC',\n", + " 'ACS_PCT_HU_COAL_ZC',\n", + " 'ACS_PCT_HU_OTHER_ZC',\n", + " 'ACS_PCT_HU_ELEC_ZC',\n", + " 'ACS_PCT_HU_SOLAR_ZC',\n", + " 'ACS_PCT_IN_COUNTY_MOVE_ZC',\n", + " 'ACS_PCT_IN_STATE_MOVE_ZC',\n", + " 'ACS_PCT_HU_KITCHEN_ZC',\n", + " 'ACS_PCT_HU_MOBILE_HOME_ZC',\n", + " 'ACS_PCT_OWNER_HU_ZC',\n", + " 'ACS_PCT_OWNER_HU_COST_30PCT_ZC',\n", + " 'ACS_PCT_OWNER_HU_COST_50PCT_ZC',\n", + " 'ACS_PCT_OWNER_HU_CHILD_ZC',\n", + " 'ACS_PCT_HU_PLUMBING_ZC',\n", + " 'ACS_PCT_RENTER_HU_COST_30PCT_ZC',\n", + " 'ACS_PCT_RENTER_HU_COST_50PCT_ZC',\n", + " 'ACS_PCT_RENTER_HU_ZC',\n", + " 'ACS_PCT_RENTER_HU_ABOVE65_ZC',\n", + " 'ACS_PCT_RENTER_HU_CHILD_ZC',\n", + " 'ACS_PCT_VACANT_HU_ZC',\n", + " 'ACS_PCT_COMMT_15MIN_ZC',\n", + " 'ACS_PCT_COMMT_29MIN_ZC',\n", + " 'ACS_PCT_COMMT_59MIN_ZC',\n", + " 'ACS_PCT_COMMT_60MINUP_ZC',\n", + " 'ACS_PCT_DRIVE_2WORK_ZC',\n", + " 'ACS_PCT_HU_NO_VEH_ZC',\n", + " 'ACS_PCT_PUB_COMMT_15MIN_ZC',\n", + " 'ACS_PCT_PUB_COMMT_29MIN_ZC',\n", + " 'ACS_PCT_PUB_COMMT_59MIN_ZC',\n", + " 'ACS_PCT_PUB_COMMT_60MINUP_ZC',\n", + " 'ACS_PCT_PUBL_TRANSIT_ZC',\n", + " 'ACS_PCT_TAXICAB_2WORK_ZC',\n", + " 'ACS_PCT_WALK_2WORK_ZC',\n", + " 'ACS_PCT_WORK_NO_CAR_ZC',\n", + " 'CEN_AREALAND_SQM_ZC',\n", + " 'CEN_POPDENSITY_ZC',\n", + " 'ERS_RUCA1_2010_ZP',\n", + " 'ERS_RUCA2_2010_ZP',\n", + " 'POS_DIST_ED_ZP',\n", + " 'POS_DIST_MEDSURG_ICU_ZP',\n", + " 'POS_DIST_TRAUMA_ZP',\n", + " 'POS_DIST_PED_ICU_ZP',\n", + " 'POS_DIST_OBSTETRICS_ZP',\n", + " 'POS_DIST_CLINIC_ZP',\n", + " 'POS_DIST_ALC_ZP',\n", + " 'YEAR_y',\n", + " 'COUNTYFIPS',\n", + " 'STATEFIPS_y',\n", + " 'COUNTY',\n", + " 'REGION',\n", + " 'TERRITORY_y',\n", + " 'ACS_TOT_POP_WT',\n", + " 'ACS_TOT_POP_US_ABOVE1',\n", + " 'ACS_TOT_POP_ABOVE5',\n", + " 'ACS_TOT_POP_ABOVE15',\n", + " 'ACS_TOT_POP_ABOVE16',\n", + " 'ACS_TOT_POP_16_19',\n", + " 'ACS_TOT_POP_ABOVE25',\n", + " 'ACS_TOT_CIVIL_POP_ABOVE18',\n", + " 'ACS_TOT_CIVIL_VET_POP_ABOVE25',\n", + " 'ACS_TOT_OWN_CHILD_BELOW17',\n", + " 'ACS_TOT_WORKER_NWFH',\n", + " 'ACS_TOT_WORKER_HH',\n", + " 'ACS_TOT_CIVILIAN_LABOR',\n", + " 'ACS_TOT_CIVIL_EMPLOY_POP',\n", + " 'ACS_TOT_POP_POV',\n", + " 'ACS_TOT_GRANDCHILDREN_GP',\n", + " 'ACS_TOT_HU',\n", + " 'ACS_TOT_HH',\n", + " 'ACS_AVG_HH_SIZE',\n", + " 'ACS_TOT_CIVIL_VET_POP',\n", + " 'ACS_PCT_MALE',\n", + " 'ACS_PCT_FEMALE',\n", + " 'ACS_PCT_CTZ_US_BORN',\n", + " 'ACS_PCT_CTZ_NONUS_BORN',\n", + " 'ACS_PCT_FOREIGN_BORN',\n", + " 'ACS_PCT_NON_CITIZEN',\n", + " 'ACS_PCT_CTZ_NATURALIZED',\n", + " 'ACS_PCT_NONCTN_1990',\n", + " 'ACS_PCT_NONCTN_1999',\n", + " 'ACS_PCT_NONCTN_2000',\n", + " 'ACS_PCT_API_LANG',\n", + " 'ACS_PCT_ENGL_NOT_ALL',\n", + " 'ACS_PCT_ENGL_NOT_WELL',\n", + " 'ACS_PCT_ENGL_VERY_WELL',\n", + " 'ACS_PCT_ENGL_WELL',\n", + " 'ACS_PCT_ENGLISH',\n", + " 'ACS_PCT_HH_LIMIT_ENGLISH',\n", + " 'ACS_PCT_OTH_EURP',\n", + " 'ACS_PCT_OTH_LANG',\n", + " 'ACS_PCT_SPANISH',\n", + " 'ACS_PCT_VET',\n", + " 'ACS_PCT_GULFWAR_1990_2001',\n", + " 'ACS_PCT_GULFWAR_2001',\n", + " 'ACS_PCT_GULFWAR_VIETNAM',\n", + " 'ACS_PCT_VIETNAM',\n", + " 'ACS_MEDIAN_AGE',\n", + " 'ACS_MEDIAN_AGE_MALE',\n", + " 'ACS_MEDIAN_AGE_FEMALE',\n", + " 'ACS_PCT_AGE_0_4',\n", + " 'ACS_PCT_AGE_5_9',\n", + " 'ACS_PCT_AGE_10_14',\n", + " 'ACS_PCT_AGE_15_17',\n", + " 'ACS_PCT_AGE_0_17',\n", + " 'ACS_PCT_AGE_18_29',\n", + " 'ACS_PCT_AGE_18_44',\n", + " 'ACS_PCT_AGE_30_44',\n", + " 'ACS_PCT_AGE_45_64',\n", + " 'ACS_PCT_AGE_50_64',\n", + " 'ACS_PCT_AGE_ABOVE65',\n", + " 'ACS_PCT_AGE_ABOVE80',\n", + " 'ACS_PCT_AIAN',\n", + " 'ACS_PCT_AIAN_FEMALE',\n", + " 'ACS_PCT_AIAN_MALE',\n", + " 'ACS_PCT_AIAN_NONHISP',\n", + " 'ACS_PCT_ASIAN',\n", + " 'ACS_PCT_ASIAN_FEMALE',\n", + " 'ACS_PCT_ASIAN_MALE',\n", + " 'ACS_PCT_ASIAN_NONHISP',\n", + " 'ACS_PCT_BLACK',\n", + " 'ACS_PCT_BLACK_FEMALE',\n", + " 'ACS_PCT_BLACK_MALE',\n", + " 'ACS_PCT_BLACK_NONHISP',\n", + " 'ACS_PCT_HISP_FEMALE',\n", + " 'ACS_PCT_HISP_MALE',\n", + " 'ACS_PCT_HISPANIC',\n", + " 'ACS_PCT_MULT_RACE',\n", + " 'ACS_PCT_MULT_RACE_FEMALE',\n", + " 'ACS_PCT_MULT_RACE_MALE',\n", + " 'ACS_PCT_MULT_RACE_NONHISP',\n", + " 'ACS_PCT_NHPI',\n", + " 'ACS_PCT_NHPI_NONHISP',\n", + " 'ACS_PCT_OTHER_FEMALE',\n", + " 'ACS_PCT_OTHER_MALE',\n", + " 'ACS_PCT_OTHER_NONHISP',\n", + " 'ACS_PCT_OTHER_RACE',\n", + " 'ACS_PCT_WHITE',\n", + " 'ACS_PCT_WHITE_FEMALE',\n", + " 'ACS_PCT_WHITE_MALE',\n", + " 'ACS_PCT_WHITE_NONHISP',\n", + " 'ACS_PCT_HOUSEHOLDER_WHITE',\n", + " 'ACS_PCT_HOUSEHOLDER_BLACK',\n", + " 'ACS_PCT_HOUSEHOLDER_AIAN',\n", + " 'ACS_PCT_HOUSEHOLDER_ASIAN',\n", + " 'ACS_PCT_HOUSEHOLDER_NHPI',\n", + " 'ACS_PCT_HOUSEHOLDER_OTHER',\n", + " 'ACS_PCT_HOUSEHOLDER_MULT',\n", + " 'ACS_PCT_AIAN_COMB',\n", + " 'ACS_PCT_ASIAN_COMB',\n", + " 'ACS_PCT_BLACK_COMB',\n", + " 'ACS_PCT_NHPI_COMB',\n", + " 'ACS_PCT_WHITE_COMB',\n", + " 'ACS_PCT_CHILD_1FAM',\n", + " 'ACS_PCT_CHILDREN_GRANDPARENT',\n", + " 'ACS_PCT_GRANDP_RESPS_NO_P',\n", + " 'ACS_PCT_GRANDP_RESPS_P',\n", + " 'ACS_PCT_GRANDP_NO_RESPS',\n", + " 'ACS_PCT_HH_KID_1PRNT',\n", + " 'ACS_PCT_DIVORCED_F',\n", + " 'ACS_PCT_DIVORCED_M',\n", + " 'ACS_PCT_MARRIED_SP_AB_F',\n", + " 'ACS_PCT_MARRIED_SP_AB_M',\n", + " 'ACS_PCT_MARRIED_SP_PR_F',\n", + " 'ACS_PCT_MARRIED_SP_PR_M',\n", + " 'ACS_PCT_NVR_MARRIED_F',\n", + " 'ACS_PCT_NVR_MARRIED_M',\n", + " 'ACS_PCT_WIDOWED_F',\n", + " 'ACS_PCT_WIDOWED_M',\n", + " 'ACS_PCT_ADMIN',\n", + " 'ACS_PCT_ARMED_FORCES',\n", + " 'ACS_PCT_ART',\n", + " 'ACS_PCT_CONSTRUCT',\n", + " 'ACS_PCT_EDUC',\n", + " 'ACS_PCT_EMPLOYED',\n", + " 'ACS_PCT_FINANCE',\n", + " 'ACS_PCT_GOVT',\n", + " 'ACS_PCT_INFORM',\n", + " 'ACS_PCT_MANUFACT',\n", + " 'ACS_PCT_NATURE',\n", + " 'ACS_PCT_NOT_LABOR',\n", + " 'ACS_PCT_OTHER',\n", + " 'ACS_PCT_PROFESS',\n", + " 'ACS_PCT_PVT_NONPROFIT',\n", + " 'ACS_PCT_PVT_PROFIT',\n", + " 'ACS_PCT_RETAIL',\n", + " 'ACS_PCT_TRANSPORT',\n", + " 'ACS_PCT_UNEMPLOY',\n", + " 'ACS_PCT_VET_LABOR_FORCE_18_64',\n", + " 'ACS_PCT_VET_UNEMPL_18_64',\n", + " 'ACS_PCT_WHOLESALE',\n", + " 'ACS_PCT_WORK_RES_F',\n", + " 'ACS_PCT_WORK_RES_M',\n", + " 'ACS_GINI_INDEX',\n", + " 'ACS_MDN_GRNDPRNT_NO_PRNT_INC',\n", + " 'ACS_MDN_GRNDPRNT_INC',\n", + " 'ACS_MEDIAN_HH_INC_BLACK',\n", + " 'ACS_MEDIAN_HH_INC_HISP',\n", + " 'ACS_MEDIAN_HH_INC_MULTI',\n", + " 'ACS_MEDIAN_HH_INC_OTHER',\n", + " 'ACS_MEDIAN_HH_INC_WHITE',\n", + " 'ACS_MEDIAN_HH_INC',\n", + " 'ACS_MEDIAN_INC_F',\n", + " 'ACS_MEDIAN_INC_M',\n", + " 'ACS_MEDIAN_NONVET_INC',\n", + " 'ACS_MEDIAN_VET_INC',\n", + " 'ACS_PCT_INC50_ABOVE65',\n", + " 'ACS_PCT_INC50_BELOW17',\n", + " 'ACS_PCT_HH_INC_10000',\n", + " 'ACS_PCT_HH_INC_100000',\n", + " 'ACS_PCT_HH_INC_14999',\n", + " 'ACS_PCT_HH_INC_24999',\n", + " 'ACS_PCT_HH_INC_49999',\n", + " 'ACS_PCT_HH_INC_99999',\n", + " 'ACS_PCT_INC50',\n", + " 'ACS_PCT_PERSON_INC_100_124',\n", + " 'ACS_PCT_PERSON_INC_125_199',\n", + " 'ACS_PCT_PERSON_INC_ABOVE200',\n", + " 'ACS_PCT_PERSON_INC_BELOW99',\n", + " 'ACS_PER_CAPITA_INC',\n", + " 'ACS_PCT_POV_AIAN',\n", + " 'ACS_PCT_POV_ASIAN',\n", + " 'ACS_PCT_POV_BLACK',\n", + " 'ACS_PCT_POV_HISPANIC',\n", + " 'ACS_PCT_POV_MULTI',\n", + " 'ACS_PCT_POV_OTHER',\n", + " 'ACS_PCT_POV_WHITE',\n", + " 'ACS_PCT_HH_1FAM_FOOD_STMP',\n", + " 'ACS_PCT_HH_FOOD_STMP',\n", + " 'ACS_PCT_HH_PUB_ASSIST',\n", + " 'ACS_PCT_HH_FOOD_STMP_BLW_POV',\n", + " 'ACS_PCT_HH_NO_FD_STMP_BLW_POV',\n", + " 'ACS_PCT_COLLEGE_ASSOCIATE_DGR',\n", + " 'ACS_PCT_BACHELOR_DGR',\n", + " 'ACS_PCT_NO_WORK_NO_SCHL_16_19',\n", + " 'ACS_PCT_GRADUATE_DGR',\n", + " 'ACS_PCT_HS_GRADUATE',\n", + " 'ACS_PCT_LT_HS',\n", + " 'ACS_PCT_POSTHS_ED',\n", + " 'ACS_PCT_VET_BACHELOR',\n", + " 'ACS_PCT_VET_COLLEGE',\n", + " 'ACS_PCT_VET_HS',\n", + " 'ACS_MEDIAN_HOME_VALUE',\n", + " 'ACS_MEDIAN_RENT',\n", + " 'ACS_PCT_1UP_RENT_1ROOM',\n", + " 'ACS_PCT_1UP_OWNER_1ROOM',\n", + " 'ACS_PCT_1UP_PERS_1ROOM',\n", + " 'ACS_PCT_HH_1PERS',\n", + " 'ACS_PCT_10UNITS',\n", + " 'ACS_PCT_GRP_QRT',\n", + " 'ACS_PCT_HU_MOBILE_HOME',\n", + " 'ACS_PCT_OWNER_HU',\n", + " 'ACS_PCT_OWNER_HU_CHILD',\n", + " 'ACS_PCT_RENTER_HU',\n", + " 'ACS_PCT_RENTER_HU_ABOVE65',\n", + " 'ACS_PCT_RENTER_HU_CHILD',\n", + " 'ACS_PCT_RENTER_HU_COST_30PCT',\n", + " 'ACS_PCT_RENTER_HU_COST_50PCT',\n", + " 'ACS_PCT_VACANT_HU',\n", + " 'ACS_PCT_HU_NO_FUEL',\n", + " 'ACS_PCT_HU_UTILITY_GAS',\n", + " 'ACS_PCT_HU_BOT_TANK_LP_GAS',\n", + " 'ACS_PCT_HU_OIL',\n", + " 'ACS_PCT_HU_WOOD',\n", + " 'ACS_PCT_HU_COAL',\n", + " 'ACS_PCT_HU_OTHER',\n", + " 'ACS_PCT_HU_ELEC',\n", + " 'ACS_PCT_HU_SOLAR',\n", + " 'ACS_MDN_OWNER_COST_MORTGAGE',\n", + " 'ACS_MDN_OWNER_COST_NO_MORTG',\n", + " 'ACS_PCT_OWNER_HU_COST_30PCT',\n", + " 'ACS_PCT_OWNER_HU_COST_50PCT',\n", + " 'ACS_MEDIAN_YEAR_BUILT',\n", + " 'ACS_PCT_HU_BUILT_1979',\n", + " 'ACS_PCT_HU_KITCHEN',\n", + " 'ACS_PCT_HU_PLUMBING',\n", + " 'ACS_PCT_IN_STATE_MOVE',\n", + " 'ACS_PCT_IN_COUNTY_MOVE',\n", + " 'ACS_PCT_DIF_STATE',\n", + " 'ACS_PCT_HH_ABOVE65',\n", + " 'ACS_PCT_HH_ALONE_ABOVE65',\n", + " 'ACS_PCT_COMMT_15MIN',\n", + " 'ACS_PCT_COMMT_29MIN',\n", + " 'ACS_PCT_COMMT_59MIN',\n", + " 'ACS_PCT_COMMT_60MINUP',\n", + " 'ACS_PCT_DRIVE_2WORK',\n", + " 'ACS_PCT_HU_NO_VEH',\n", + " 'ACS_PCT_PUB_COMMT_15MIN',\n", + " 'ACS_PCT_PUB_COMMT_29MIN',\n", + " 'ACS_PCT_PUB_COMMT_59MIN',\n", + " 'ACS_PCT_PUB_COMMT_60MINUP',\n", + " 'ACS_PCT_PUBL_TRANSIT',\n", + " 'ACS_PCT_TAXICAB_2WORK',\n", + " 'ACS_PCT_WALK_2WORK',\n", + " 'ACS_PCT_WORK_NO_CAR',\n", + " 'AHRF_USDA_RUCC_2013',\n", + " 'AHRF_VET',\n", + " 'AHRF_VET_MALE',\n", + " 'AHRF_VET_FEMALE',\n", + " 'AHRF_UNEMPLOYED_RATE',\n", + " 'AHRF_TOT_ARBRNE_ST_G_ISO_ROOMS',\n", + " 'AHRF_ARBRNE_ST_G_ISO_ROOMS_RATE',\n", + " 'AHRF_TOT_ARBRNE_STNGLT_ISO_ROOM',\n", + " 'AHRF_ARBRNE_STNGLT_ISO_ROOM_RATE',\n", + " 'AHRF_TOT_ER_VST_ST_G_HOSP',\n", + " 'AHRF_TOT_HOSP_ADMISSIONS',\n", + " 'AHRF_TOT_HOSP_BED',\n", + " 'AHRF_HOSP_BED_RATE',\n", + " 'AHRF_TOT_HOSP_BEDS_LT',\n", + " 'AHRF_HOSP_BEDS_LT_RATE',\n", + " 'AHRF_TOT_LT_HOSP',\n", + " 'AHRF_LT_HOSP_RATE',\n", + " 'AHRF_TOT_NH_BED_STNGH',\n", + " 'AHRF_NH_BED_STNGH_RATE',\n", + " 'AHRF_TOT_OPRT_ROOM',\n", + " 'AHRF_OPRT_ROOM_RATE',\n", + " 'AHRF_TOT_ST_COMM_HOSP',\n", + " 'AHRF_ST_COMM_HOSP_RATE',\n", + " 'AHRF_TOT_ST_G_HOSP',\n", + " 'AHRF_ST_G_HOSP_RATE',\n", + " 'AHRF_TOT_ST_G_HOSP_BED',\n", + " 'AHRF_ST_G_HOSP_BED_RATE',\n", + " 'AHRF_TOT_ST_N_G_HOSP',\n", + " 'AHRF_ST_N_G_HOSP_RATE',\n", + " 'AHRF_TOT_HOSPS',\n", + " 'AHRF_HOSPS_RATE',\n", + " 'AHRF_PRESC_ENROLLMENT',\n", + " 'AHRF_PCT_PRESC_PEN',\n", + " 'AHRF_TOT_ADV_NURSES',\n", + " 'AHRF_ADV_NURSES_RATE',\n", + " 'AHRF_TOT_ALLERGY_IMM',\n", + " 'AHRF_ALLERGY_IMM_RATE',\n", + " 'AHRF_TOT_ANESTH',\n", + " 'AHRF_ANESTH_RATE',\n", + " 'AHRF_TOT_CHLD_PSYCH',\n", + " 'AHRF_CHLD_PSYCH_RATE',\n", + " 'AHRF_TOT_CLIN_NURSE_SPEC',\n", + " 'AHRF_CLIN_NURSE_SPEC_RATE',\n", + " 'AHRF_TOT_DENTISTS',\n", + " 'AHRF_DENTISTS_RATE',\n", + " 'AHRF_TOT_GEN_PREV',\n", + " 'AHRF_GEN_PREV_RATE',\n", + " 'AHRF_TOT_NURSE_ANESTH',\n", + " 'AHRF_NURSE_ANESTH_RATE',\n", + " 'AHRF_TOT_NURSE_MIDWIVES',\n", + " 'AHRF_NURSE_MIDWIVES_RATE',\n", + " 'AHRF_TOT_NURSE_PRACT',\n", + " 'AHRF_NURSE_PRACT_RATE',\n", + " 'AHRF_TOT_OB_GYN',\n", + " 'AHRF_OB_GYN_RATE',\n", + " 'AHRF_TOT_OPHTHALMOLOGY',\n", + " 'AHRF_OPHTHALMOLOGY_RATE',\n", + " 'AHRF_TOT_ORTH_SURG',\n", + " 'AHRF_ORTH_SURG_RATE',\n", + " 'AHRF_TOT_OTHER_SPEC',\n", + " 'AHRF_OTHER_SPEC_RATE',\n", + " 'AHRF_TOT_OTOLARYNGOLOGY',\n", + " 'AHRF_OTOLARYNGOLOGY_RATE',\n", + " 'AHRF_TOT_PEDIATRICS',\n", + " 'AHRF_PEDIATRICS_RATE',\n", + " 'AHRF_TOT_PHYSICIAN_ASSIST',\n", + " 'AHRF_PHYSICIAN_ASSIST_RATE',\n", + " 'AHRF_TOT_PHYS_PRIMARY',\n", + " 'AHRF_PHYS_PRIMARY_RATE',\n", + " 'AHRF_TOT_PLASTIC_SURG',\n", + " 'AHRF_PLASTIC_SURG_RATE',\n", + " 'AHRF_TOT_PULMONARY_SPEC',\n", + " 'AHRF_PULMONARY_SPEC_RATE',\n", + " 'AHRF_TOT_PSYCH',\n", + " 'AHRF_PSYCH_RATE',\n", + " 'AHRF_TOT_RADI',\n", + " 'AHRF_RADI_RATE',\n", + " 'AHRF_MCR_BN_READM_RATE',\n", + " 'AHRF_TOT_SURG_SPECS',\n", + " 'AHRF_SURG_SPECS_RATE',\n", + " 'AHRF_TOT_THORACIC_SURG',\n", + " 'AHRF_THORACIC_SURG_RATE',\n", + " 'AHRF_TOT_MDS',\n", + " 'AHRF_MDS_RATE',\n", + " 'AHRF_TOT_UROL',\n", + " 'AHRF_UROL_RATE',\n", + " 'AHRF_IP_DAY_NH_HOSP_RATE',\n", + " 'AHRF_IP_DAY_ST_G_HOSP_RATE',\n", + " 'AHRF_IP_DAY_STNG_LT_RATE',\n", + " 'AHRF_TOT_MCR_BN_READM',\n", + " 'AHRF_TOT_MCR_IP_DAY_ST_G',\n", + " 'AHRF_TOT_MDCD_IP_DAY_ST_G',\n", + " 'AHRF_TOT_MDCR_FFS_ACT_COST',\n", + " 'AHRF_TOT_MDCR_FFS_STD_COST',\n", + " 'AHRF_TOT_CARDIOVAS_SPEC',\n", + " 'AHRF_CARDIOVAS_SPEC_RATE',\n", + " 'AHRF_TOT_COLON_SRG',\n", + " 'AHRF_COLON_SRG_RATE',\n", + " 'AHRF_TOT_DERMATOLOGY',\n", + " 'AHRF_DERMATOLOGY_RATE',\n", + " 'AHRF_TOT_ER_MED',\n", + " 'AHRF_ER_MED_RATE',\n", + " 'AHRF_TOT_GASTROENTEROLOGY',\n", + " 'AHRF_GASTROENTEROLOGY_RATE',\n", + " 'AHRF_TOT_GEN_INTERNAL_MED',\n", + " 'AHRF_GEN_INTERNAL_MED_RATE',\n", + " 'AHRF_TOT_GENRL_SURG',\n", + " 'AHRF_GENRL_SURG_RATE',\n", + " 'AHRF_TOT_MED_SPEC',\n", + " 'AHRF_MED_SPEC_RATE',\n", + " 'AHRF_TOT_NEUROLOGICAL_SURG',\n", + " 'AHRF_NEUROLOGICAL_SURG_RATE',\n", + " 'AHRF_TOT_N_ST_G_EXP',\n", + " 'AHRF_TOT_N_ST_G_PAYRLL',\n", + " 'AHRF_TOT_N_ST_G_PAYRLL_1000',\n", + " 'AHRF_OP_VST_LT_ER_OP_RATE',\n", + " 'AHRF_OP_VST_ST_G_ER_OP_RATE',\n", + " 'AHRF_OP_VST_ST_G_OTHR_RATE',\n", + " 'AHRF_TOT_OUTPAT_VST_STNGH',\n", + " 'AHRF_TOT_ST_COMM_HOSP_ADMS',\n", + " 'AHRF_TOT_ST_G_HOSP_ADMS',\n", + " 'AHRF_TOT_STNG_LT_HOSP_ADMS',\n", + " 'AHRF_SURG_OPRN_IP_RATE',\n", + " 'AHRF_SURG_OPRN_OP_RATE',\n", + " 'AMFAR_TOT_MEDSAFAC',\n", + " 'AMFAR_MEDSAFAC_RATE',\n", + " 'CAF_ADJ_COUNTY_1',\n", + " 'CAF_ADJ_COUNTY_2',\n", + " 'CAF_ADJ_COUNTY_3',\n", + " 'CAF_ADJ_COUNTY_4',\n", + " 'CAF_ADJ_COUNTY_5',\n", + " 'CAF_ADJ_COUNTY_6',\n", + " 'CCBP_ANNUAL_TOT_POP',\n", + " 'CCBP_LARGE_INDUSTRY',\n", + " 'CCBP_PCT_HEALTH_EMPLOYMENT',\n", + " 'CCBP_PHYS_RATE',\n", + " 'CCBP_CHILD_RATE',\n", + " 'CCBP_SA_RATE',\n", + " 'CCBP_CS_RATE',\n", + " 'CCBP_FF_RATE',\n", + " 'CCBP_FSR_RATE',\n", + " 'CCBP_SOGS_RATE',\n", + " 'CDCA_HEART_DTH_RATE_ABOVE35',\n", + " 'CDCA_STROKE_DTH_RATE_ABOVE35',\n", + " 'CDCA_PREV_DTH_RATE_BELOW74',\n", + " 'CDCA_PREV_DTH_BLACK_RATE_BELOW74',\n", + " 'CDCA_PREV_DTH_WHITE_RATE_BELOW74',\n", + " 'CDCAP_HIV_RATE_ABOVE13',\n", + " 'CDCAP_HIVDIAG_RATE_ABOVE13',\n", + " 'CDCAP_HIVDIAG_M_RATE_ABOVE13',\n", + " 'CDCAP_HIVDIAG_F_RATE_ABOVE13',\n", + " 'CDCAP_HIVDIAG_WHT_RATE_ABOVE13',\n", + " 'CDCAP_CHLAMYDIA_RATE',\n", + " 'CDCAP_GONORRHEA_RATE',\n", + " 'CDCAP_SYPHILIS_RATE',\n", + " 'CDCW_TOT_POPULATION',\n", + " 'CDCW_INJURY_DTH_RATE',\n", + " 'CDCW_TRANSPORT_DTH_RATE',\n", + " 'CDCW_SELFHARM_DTH_RATE',\n", + " 'CDCW_DRUG_DTH_RATE',\n", + " 'CEN_AREALAND_SQM_COUNTY',\n", + " 'CEN_POPDENSITY_COUNTY',\n", + " 'MP_MEDICARE_ELIGIBLES',\n", + " 'MP_MEDICARE_ADVTG_ENROLLED',\n", + " 'MP_PCT_ADVTG_PEN',\n", + " 'NCHS_URCS_2006',\n", + " 'NCHS_URCS_2013',\n", + " 'NEPHTN_HEATIND_90',\n", + " 'NEPHTN_HEATIND_95',\n", + " 'NEPHTN_HEATIND_100',\n", + " 'NEPHTN_HEATIND_105',\n", + " 'NEPHTN_MAXDROUGHT',\n", + " 'NEPHTN_NUMDROUGHT',\n", + " 'NEPHTN_TEMPERATURE_90',\n", + " 'NEPHTN_TEMPERATURE_95',\n", + " 'NEPHTN_TEMPERATURE_100',\n", + " 'NEPHTN_TEMPERATURE_105',\n", + " 'CCD_FED_REVENUE_CNA',\n", + " 'CCD_LOCAL_REVENUE_LUNCH',\n", + " 'CCD_STATE_REVENUE_LUNCH',\n", + " 'CCD_TOT_EXPENDITURE',\n", + " 'CCD_TOT_FED_REVENUE',\n", + " 'CCD_TOT_LOCAL_REVENUE',\n", + " 'CCD_TOT_REVENUE',\n", + " 'CCD_TOT_STATE_REVENUE',\n", + " 'CCD_TOT_STUDENTS',\n", + " 'NOAAC_AVG_TEMP_APR',\n", + " 'NOAAC_AVG_TEMP_AUG',\n", + " 'NOAAC_AVG_TEMP_DEC',\n", + " 'NOAAC_AVG_TEMP_FEB',\n", + " 'NOAAC_AVG_TEMP_JAN',\n", + " 'NOAAC_AVG_TEMP_JUL',\n", + " 'NOAAC_AVG_TEMP_JUN',\n", + " 'NOAAC_AVG_TEMP_MAR',\n", + " 'NOAAC_AVG_TEMP_MAY',\n", + " 'NOAAC_AVG_TEMP_NOV',\n", + " 'NOAAC_AVG_TEMP_OCT',\n", + " 'NOAAC_AVG_TEMP_SEP',\n", + " 'NOAAC_MAX_TEMP_APR',\n", + " 'NOAAC_MAX_TEMP_AUG',\n", + " 'NOAAC_MAX_TEMP_DEC',\n", + " 'NOAAC_MAX_TEMP_FEB',\n", + " 'NOAAC_MAX_TEMP_JAN',\n", + " 'NOAAC_MAX_TEMP_JUL',\n", + " 'NOAAC_MAX_TEMP_JUN',\n", + " 'NOAAC_MAX_TEMP_MAR',\n", + " 'NOAAC_MAX_TEMP_MAY',\n", + " 'NOAAC_MAX_TEMP_NOV',\n", + " 'NOAAC_MAX_TEMP_OCT',\n", + " 'NOAAC_MAX_TEMP_SEP',\n", + " 'NOAAC_MIN_TEMP_APR',\n", + " 'NOAAC_MIN_TEMP_AUG',\n", + " 'NOAAC_MIN_TEMP_DEC',\n", + " 'NOAAC_MIN_TEMP_FEB',\n", + " 'NOAAC_MIN_TEMP_JAN',\n", + " 'NOAAC_MIN_TEMP_JUL',\n", + " 'NOAAC_MIN_TEMP_JUN',\n", + " 'NOAAC_MIN_TEMP_MAR',\n", + " 'NOAAC_MIN_TEMP_MAY',\n", + " 'NOAAC_MIN_TEMP_NOV',\n", + " 'NOAAC_MIN_TEMP_OCT',\n", + " 'NOAAC_MIN_TEMP_SEP',\n", + " 'NOAAC_PRECIPITATION_APR',\n", + " 'NOAAC_PRECIPITATION_AUG',\n", + " 'NOAAC_PRECIPITATION_DEC',\n", + " 'NOAAC_PRECIPITATION_FEB',\n", + " 'NOAAC_PRECIPITATION_JAN',\n", + " 'NOAAC_PRECIPITATION_JUL',\n", + " 'NOAAC_PRECIPITATION_JUN',\n", + " 'NOAAC_PRECIPITATION_MAR',\n", + " 'NOAAC_PRECIPITATION_MAY',\n", + " 'NOAAC_PRECIPITATION_NOV',\n", + " 'NOAAC_PRECIPITATION_OCT',\n", + " 'NOAAC_PRECIPITATION_SEP',\n", + " 'NOAAS_PROPERTY_DAMAGE',\n", + " 'NOAAS_TOT_DEATHS_DIRECT',\n", + " 'NOAAS_TOT_DEATHS_INDIRECT',\n", + " 'NOAAS_TOT_INJURIES_DIRECT',\n", + " 'NOAAS_TOT_INJURIES_INDIRECT',\n", + " 'NOAAS_TOT_STORMEVENT',\n", + " 'NOAAS_TOT_TORNADO',\n", + " 'NOAAS_TOT_WIND',\n", + " 'NOAAS_TOT_HAIL',\n", + " 'NOAAS_TOT_HURRICANE_STORM',\n", + " 'NOAAS_TOT_FLOOD',\n", + " 'NOAAS_TOT_WILDFIRE',\n", + " 'NOAAS_TOT_HEAT_EVENTS',\n", + " 'NOAAS_TOT_DROUGHT',\n", + " 'SAHIE_PCT_UNINSURED64',\n", + " 'SAHIE_PCT_UNINSURED64_138FPL',\n", + " 'SAHIE_PCT_UNINSURED64_200FPL',\n", + " 'SAHIE_PCT_UNINSURED64_250FPL',\n", + " 'SAHIE_PCT_UNINSURED64_400FPL',\n", + " 'SAHIE_TOT_POP64',\n", + " 'SAIPE_MEDIAN_HH_INCOME',\n", + " 'SAIPE_PCT_POV',\n", + " 'SAIPE_PCT_POV_0_17',\n", + " 'SAIPE_PCT_POV_5_17',\n", + " 'SAIPE_TOT_POV',\n", + " 'SAIPE_TOT_POV_0_17',\n", + " 'SAIPE_TOT_POV_5_17',\n", + " 'WUSTL_AVG_PM25',\n", + " 'HRSA_MUA_COUNTY',\n", + " 'LTC_AVG_PCT_PRESSURE_ULCER',\n", + " 'LTC_PCT_RESD_BLACK',\n", + " 'LTC_PCT_RESD_HISPANIC',\n", + " 'LTC_PCT_RESD_WHITE',\n", + " 'LTC_AVG_AGE',\n", + " 'LTC_PCT_MULTI_FAC',\n", + " 'LTC_PCT_FOR_PROFIT',\n", + " 'LTC_AVG_ACUITY_INDEX',\n", + " 'LTC_TOT_BEDS',\n", + " 'LTC_TOT_BEDS_RATE',\n", + " 'LTC_AVG_OBS_REHOSP_RATE',\n", + " 'LTC_AVG_OBS_SUCCESSFUL_DISC_RATE',\n", + " 'LTC_AVG_OBS_MEDIAN_LOS',\n", + " 'LTC_AVG_PCT_MEDICAID',\n", + " 'LTC_AVG_PCT_MEDICARE',\n", + " 'LTC_OCCUPANCY_RATE',\n", + " 'MGV_PCT_MEDICAID',\n", + " 'MGV_TOT_BEN_PART_A_B',\n", + " 'MGV_TOT_BEN_FFS',\n", + " 'MGV_PCT_BEN_FFS_WHITE',\n", + " 'MGV_PCT_BEN_FFS_BLACK',\n", + " 'MGV_PCT_BEN_FFS_HISPANIC',\n", + " 'MGV_PER_CAPITA_ACTUAL_IP',\n", + " 'MGV_PER_CAPITA_STD_IP',\n", + " 'MGV_PER_CAPITA_ACTUAL_OP',\n", + " 'MGV_PER_CAPITA_STD_OP',\n", + " 'MGV_PER_CAPITA_ACTUAL_EM',\n", + " 'MGV_PER_CAPITA_STD_EM',\n", + " 'MGV_PER_CAPITA_ACTUAL_PA',\n", + " 'MGV_PER_CAPITA_STD_PA',\n", + " 'MGV_PER_CAPITA_ACTUAL_HC',\n", + " 'MGV_PER_CAPITA_STD_HC',\n", + " 'POS_MEDIAN_DIST_ED',\n", + " 'POS_MEAN_DIST_ED',\n", + " 'POS_MIN_DIST_ED',\n", + " 'POS_MAX_DIST_ED',\n", + " 'POS_MEDIAN_DIST_MEDSURG_ICU',\n", + " 'POS_MEAN_DIST_MEDSURG_ICU',\n", + " 'POS_MIN_DIST_MEDSURG_ICU',\n", + " 'POS_MAX_DIST_MEDSURG_ICU',\n", + " 'POS_MEDIAN_DIST_TRAUMA',\n", + " 'POS_MEAN_DIST_TRAUMA',\n", + " 'POS_MIN_DIST_TRAUMA',\n", + " 'POS_MAX_DIST_TRAUMA',\n", + " 'POS_MEDIAN_DIST_PED_ICU',\n", + " 'POS_MEAN_DIST_PED_ICU',\n", + " 'POS_MIN_DIST_PED_ICU',\n", + " 'POS_MAX_DIST_PED_ICU',\n", + " 'POS_MEDIAN_DIST_OBSTETRICS',\n", + " 'POS_MEAN_DIST_OBSTETRICS',\n", + " 'POS_MIN_DIST_OBSTETRICS',\n", + " 'POS_MAX_DIST_OBSTETRICS',\n", + " 'POS_MEDIAN_DIST_CLINIC',\n", + " 'POS_MEAN_DIST_CLINIC',\n", + " 'POS_MIN_DIST_CLINIC',\n", + " 'POS_MAX_DIST_CLINIC',\n", + " 'POS_MEDIAN_DIST_ALC',\n", + " 'POS_MEAN_DIST_ALC',\n", + " 'POS_MIN_DIST_ALC',\n", + " 'POS_MAX_DIST_ALC',\n", + " 'POS_TOT_FQHC',\n", + " 'POS_FQHC_RATE',\n", + " 'POS_TOT_CMHC',\n", + " 'POS_CMHC_RATE',\n", + " 'POS_TOT_RHC',\n", + " 'POS_RHC_RATE',\n", + " 'POS_TOT_HHA',\n", + " 'POS_HHA_RATE',\n", + " 'POS_TOT_HOSPICE',\n", + " 'POS_HOSPICE_RATE',\n", + " 'POS_TOT_ASC',\n", + " 'POS_ASC_RATE',\n", + " 'POS_TOT_NF',\n", + " 'POS_NF_RATE',\n", + " 'POS_TOT_NF_BEDS',\n", + " 'POS_NF_BEDS_RATE',\n", + " 'POS_TOT_SNF',\n", + " 'POS_SNF_RATE',\n", + " 'POS_TOT_SNF_BEDS',\n", + " 'POS_SNF_BEDS_RATE',\n", + " 'POS_TOT_HOSP_OBSTETRIC',\n", + " 'POS_HOSP_OBSTETRIC_RATE',\n", + " 'POS_TOT_HOSP_PED_ICU',\n", + " 'POS_HOSP_PED_ICU_RATE',\n", + " 'POS_TOT_HOSP_BURN',\n", + " 'POS_HOSP_BURN_RATE',\n", + " 'POS_TOT_HOSP_MEDSURG_ICU',\n", + " 'POS_HOSP_MEDSURG_ICU_RATE',\n", + " 'POS_TOT_HOSP_REHAB',\n", + " 'POS_HOSP_REHAB_RATE',\n", + " 'POS_TOT_HOSP_ALC',\n", + " 'POS_HOSP_ALC_RATE',\n", + " 'POS_TOT_HOSP_PSYCH',\n", + " 'POS_HOSP_PSYCH_RATE',\n", + " 'POS_TOT_HOSP_CHEMO',\n", + " 'POS_HOSP_CHEMO_RATE',\n", + " 'POS_TOT_HOSP_ED',\n", + " 'POS_HOSP_ED_RATE',\n", + " 'POS_PCT_HOSP_FOR_PROFIT',\n", + " 'POS_PCT_HOSP_NON_PROFIT',\n", + " 'POS_PCT_HOSP_GOV']" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "import pandas as pd\n", + "df = pd.read_csv(\"D:/hackToFuture/merged_data/final_merged_dataframe.csv\")\n", + "df.columns.tolist()" + ] + }, + { + "cell_type": "code", + "execution_count": 10, + "id": "b0028d36", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
STATEYEAR_xSTATEFIPS_xZIPCODEZCTATERRITORY_xPOINT_ZIPACS_TOT_POP_WT_ZCACS_TOT_POP_US_ABOVE1_ZCACS_TOT_POP_ABOVE5_ZC...POS_HOSP_ALC_RATEPOS_TOT_HOSP_PSYCHPOS_HOSP_PSYCH_RATEPOS_TOT_HOSP_CHEMOPOS_HOSP_CHEMO_RATEPOS_TOT_HOSP_EDPOS_HOSP_ED_RATEPOS_PCT_HOSP_FOR_PROFITPOS_PCT_HOSP_NON_PROFITPOS_PCT_HOSP_GOV
0Alabama2011.01.035945.83620735956.7600820.00.2524639582.9217989461.8017248962.705049...0.000.00.00.00.001.00.0245.0050.005.00
1Alabama2011.01.035945.83620735956.7600820.00.2524639582.9217989461.8017248962.705049...0.010.00.01.00.013.00.0260.0038.331.67
2Alabama2011.01.035945.83620735956.7600820.00.2524639582.9217989461.8017248962.705049...0.000.00.00.00.001.00.0458.8235.295.88
3Alabama2011.01.035945.83620735956.7600820.00.2524639582.9217989461.8017248962.705049...0.000.00.01.00.041.00.0420.0060.0020.00
4Alabama2011.01.035945.83620735956.7600820.00.2524639582.9217989461.8017248962.705049...0.000.00.00.00.001.00.0257.1442.860.00
..................................................................
29042Wyoming2019.056.082572.42268082399.2380740.00.1340215167.7989695109.1701034849.139175...0.000.00.00.00.001.00.0268.1827.274.55
29043Wyoming2019.056.082572.42268082399.2380740.00.1340215167.7989695109.1701034849.139175...0.000.00.01.00.041.00.0411.1122.2266.67
29044Wyoming2019.056.082572.42268082399.2380740.00.1340215167.7989695109.1701034849.139175...0.002.00.10.00.003.00.1539.1356.524.35
29045Wyoming2019.056.082572.42268082399.2380740.00.1340215167.7989695109.1701034849.139175...0.000.00.01.00.122.00.2577.7811.1111.11
29046Wyoming2019.056.082572.42268082399.2380740.00.1340215167.7989695109.1701034849.139175...0.000.00.00.00.002.00.280.0037.5062.50
\n", + "

29047 rows × 868 columns

\n", + "
" + ], + "text/plain": [ + " STATE YEAR_x STATEFIPS_x ZIPCODE ZCTA TERRITORY_x \\\n", + "0 Alabama 2011.0 1.0 35945.836207 35956.760082 0.0 \n", + "1 Alabama 2011.0 1.0 35945.836207 35956.760082 0.0 \n", + "2 Alabama 2011.0 1.0 35945.836207 35956.760082 0.0 \n", + "3 Alabama 2011.0 1.0 35945.836207 35956.760082 0.0 \n", + "4 Alabama 2011.0 1.0 35945.836207 35956.760082 0.0 \n", + "... ... ... ... ... ... ... \n", + "29042 Wyoming 2019.0 56.0 82572.422680 82399.238074 0.0 \n", + "29043 Wyoming 2019.0 56.0 82572.422680 82399.238074 0.0 \n", + "29044 Wyoming 2019.0 56.0 82572.422680 82399.238074 0.0 \n", + "29045 Wyoming 2019.0 56.0 82572.422680 82399.238074 0.0 \n", + "29046 Wyoming 2019.0 56.0 82572.422680 82399.238074 0.0 \n", + "\n", + " POINT_ZIP ACS_TOT_POP_WT_ZC ACS_TOT_POP_US_ABOVE1_ZC \\\n", + "0 0.252463 9582.921798 9461.801724 \n", + "1 0.252463 9582.921798 9461.801724 \n", + "2 0.252463 9582.921798 9461.801724 \n", + "3 0.252463 9582.921798 9461.801724 \n", + "4 0.252463 9582.921798 9461.801724 \n", + "... ... ... ... \n", + "29042 0.134021 5167.798969 5109.170103 \n", + "29043 0.134021 5167.798969 5109.170103 \n", + "29044 0.134021 5167.798969 5109.170103 \n", + "29045 0.134021 5167.798969 5109.170103 \n", + "29046 0.134021 5167.798969 5109.170103 \n", + "\n", + " ACS_TOT_POP_ABOVE5_ZC ... POS_HOSP_ALC_RATE POS_TOT_HOSP_PSYCH \\\n", + "0 8962.705049 ... 0.00 0.0 \n", + "1 8962.705049 ... 0.01 0.0 \n", + "2 8962.705049 ... 0.00 0.0 \n", + "3 8962.705049 ... 0.00 0.0 \n", + "4 8962.705049 ... 0.00 0.0 \n", + "... ... ... ... ... \n", + "29042 4849.139175 ... 0.00 0.0 \n", + "29043 4849.139175 ... 0.00 0.0 \n", + "29044 4849.139175 ... 0.00 2.0 \n", + "29045 4849.139175 ... 0.00 0.0 \n", + "29046 4849.139175 ... 0.00 0.0 \n", + "\n", + " POS_HOSP_PSYCH_RATE POS_TOT_HOSP_CHEMO POS_HOSP_CHEMO_RATE \\\n", + "0 0.0 0.0 0.00 \n", + "1 0.0 1.0 0.01 \n", + "2 0.0 0.0 0.00 \n", + "3 0.0 1.0 0.04 \n", + "4 0.0 0.0 0.00 \n", + "... ... ... ... \n", + "29042 0.0 0.0 0.00 \n", + "29043 0.0 1.0 0.04 \n", + "29044 0.1 0.0 0.00 \n", + "29045 0.0 1.0 0.12 \n", + "29046 0.0 0.0 0.00 \n", + "\n", + " POS_TOT_HOSP_ED POS_HOSP_ED_RATE POS_PCT_HOSP_FOR_PROFIT \\\n", + "0 1.0 0.02 45.00 \n", + "1 3.0 0.02 60.00 \n", + "2 1.0 0.04 58.82 \n", + "3 1.0 0.04 20.00 \n", + "4 1.0 0.02 57.14 \n", + "... ... ... ... \n", + "29042 1.0 0.02 68.18 \n", + "29043 1.0 0.04 11.11 \n", + "29044 3.0 0.15 39.13 \n", + "29045 2.0 0.25 77.78 \n", + "29046 2.0 0.28 0.00 \n", + "\n", + " POS_PCT_HOSP_NON_PROFIT POS_PCT_HOSP_GOV \n", + "0 50.00 5.00 \n", + "1 38.33 1.67 \n", + "2 35.29 5.88 \n", + "3 60.00 20.00 \n", + "4 42.86 0.00 \n", + "... ... ... \n", + "29042 27.27 4.55 \n", + "29043 22.22 66.67 \n", + "29044 56.52 4.35 \n", + "29045 11.11 11.11 \n", + "29046 37.50 62.50 \n", + "\n", + "[29047 rows x 868 columns]" + ] + }, + "execution_count": 10, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "8863331d", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "['STATE', 'COUNTY', 'REGION']" + ] + }, + "execution_count": 11, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# give me columns of object types\n", + "object_columns = df.select_dtypes(include=['object']).columns.tolist()\n", + "object_columns" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "261a70b5", + "metadata": {}, + "outputs": [], + "source": [ + "# List of selected output features for predictive dashboard\n", + "\n", + "output_features = [ \n", + " # Healthcare Accessibility\n", + " \"POS_DIST_ED_ZP\",\n", + " \"POS_DIST_CLINIC_ZP\",\n", + " \"POS_DIST_MEDSURG_ICU_ZP\",\n", + " \"POS_DIST_TRAUMA_ZP\",\n", + " \n", + " # Income and Employment Stress\n", + " \"ACS_MEDIAN_HH_INC_ZC\",\n", + " \"ACS_PCT_INC50_ZC\",\n", + " \"ACS_PCT_UNEMPLOY_ZC\",\n", + " \"ACS_PER_CAPITA_INC_ZC\",\n", + " \"ACS_GINI_INDEX_ZC\",\n", + " \n", + " # Housing Instability\n", + " \"ACS_PCT_RENTER_HU_COST_50PCT_ZC\",\n", + " \"ACS_PCT_VACANT_HU_ZC\",\n", + " \"ACS_MEDIAN_RENT_ZC\",\n", + " \"ACS_PCT_OWNER_HU_COST_30PCT_ZC\",\n", + " \n", + " # Poverty & Social Support\n", + " \"ACS_PCT_HH_FOOD_STMP_ZC\",\n", + " \"ACS_PCT_HH_PUB_ASSIST_ZC\",\n", + " \"ACS_PCT_NO_WORK_NO_SCHL_16_19_ZC\",\n", + " \"ACS_PCT_CHILD_1FAM_ZC\",\n", + " \"ACS_PCT_GRANDP_RESPS_NO_P_ZC\",\n", + " \n", + " # Language & Education Barriers\n", + " \"ACS_PCT_ENGL_NOT_WELL_ZC\",\n", + " \"ACS_PCT_HH_LIMIT_ENGLISH_ZC\",\n", + " \"ACS_PCT_LT_HS_ZC\",\n", + " \"ACS_PCT_HS_GRADUATE_ZC\",\n", + " \n", + " # Demographic Pressure\n", + " \"ACS_PCT_AGE_ABOVE65_ZC\",\n", + " \"ACS_TOT_POP_WT_ZC\",\n", + " \"CEN_POPDENSITY_ZC\"\n", + "]" + ] + }, + { + "cell_type": "code", + "execution_count": 14, + "id": "461c3c6b", + "metadata": {}, + "outputs": [], + "source": [ + "import numpy as np\n", + "X = df.drop(output_features, axis=1)\n", + "y = df[output_features]\n", + "X = X.select_dtypes(include=[np.number])\n" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "id": "dcde4024", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "(29047, 840)" + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "X.shape" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "9ef925f3", + "metadata": {}, + "outputs": [], + "source": [ + "import torch\n", + "import torch.nn as nn\n", + "from torch.utils.data import Dataset, DataLoader\n", + "from sklearn.model_selection import train_test_split\n", + "import pandas as pd\n", + "import numpy as np\n" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "id": "03e0f19c", + "metadata": {}, + "outputs": [], + "source": [ + "class SocioHealthDataset(Dataset):\n", + " def __init__(self, X, y):\n", + " self.X = torch.tensor(X.values, dtype=torch.float32)\n", + " self.y = torch.tensor(y.values, dtype=torch.float32)\n", + "\n", + " def __len__(self):\n", + " return len(self.X)\n", + "\n", + " def __getitem__(self, idx):\n", + " return self.X[idx], self.y[idx]\n" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "id": "15e14591", + "metadata": {}, + "outputs": [], + "source": [ + "X_train, X_val, y_train, y_val = train_test_split(X, y, test_size=0.2, random_state=42)\n", + "\n", + "train_dataset = SocioHealthDataset(X_train, y_train)\n", + "val_dataset = SocioHealthDataset(X_val, y_val)\n", + "\n", + "train_loader = DataLoader(train_dataset, batch_size=64, shuffle=True)\n", + "val_loader = DataLoader(val_dataset, batch_size=64, shuffle=False)" + ] + }, + { + "cell_type": "code", + "execution_count": 27, + "id": "36aa8a39", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "True" + ] + }, + "execution_count": 27, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "torch.cuda.is_available()" + ] + }, + { + "cell_type": "code", + "execution_count": 35, + "id": "bbc2f3d3", + "metadata": {}, + "outputs": [], + "source": [ + "# importing datasetw with numerical features\n", + "import pandas as pd\n", + "import numpy as np\n", + "import os\n", + "\n", + "data = df.copy()\n", + "data = data.select_dtypes(include=[np.number])" + ] + }, + { + "cell_type": "code", + "execution_count": 5, + "id": "692cf758", + "metadata": {}, + "outputs": [], + "source": [ + "potential_targets = [\n", + " # Healthcare Accessibility\n", + " \"POS_DIST_ED_ZP\",\n", + " \"POS_DIST_CLINIC_ZP\",\n", + " \"POS_DIST_MEDSURG_ICU_ZP\",\n", + " \"POS_DIST_TRAUMA_ZP\",\n", + " \n", + " # Income and Employment Stress\n", + " \"ACS_MEDIAN_HH_INC_ZC\",\n", + " \"ACS_PCT_INC50_ZC\",\n", + " \"ACS_PCT_UNEMPLOY_ZC\",\n", + " \"ACS_PER_CAPITA_INC_ZC\",\n", + " \"ACS_GINI_INDEX_ZC\",\n", + " \n", + " # Housing Instability\n", + " \"ACS_PCT_RENTER_HU_COST_50PCT_ZC\",\n", + " \"ACS_PCT_VACANT_HU_ZC\",\n", + " \"ACS_MEDIAN_RENT_ZC\",\n", + " \"ACS_PCT_OWNER_HU_COST_30PCT_ZC\",\n", + " \n", + " # Poverty & Social Support\n", + " \"ACS_PCT_HH_FOOD_STMP_ZC\",\n", + " \"ACS_PCT_HH_PUB_ASSIST_ZC\",\n", + " \"ACS_PCT_NO_WORK_NO_SCHL_16_19_ZC\",\n", + " \"ACS_PCT_CHILD_1FAM_ZC\",\n", + " \"ACS_PCT_GRANDP_RESPS_NO_P_ZC\",\n", + " \n", + " # Language & Education Barriers\n", + " \"ACS_PCT_ENGL_NOT_WELL_ZC\",\n", + " \"ACS_PCT_HH_LIMIT_ENGLISH_ZC\",\n", + " \"ACS_PCT_LT_HS_ZC\",\n", + " \"ACS_PCT_HS_GRADUATE_ZC\",\n", + " \n", + " # Demographic Pressure\n", + " \"ACS_PCT_AGE_ABOVE65_ZC\",\n", + " \"ACS_TOT_POP_WT_ZC\",\n", + " \"CEN_POPDENSITY_ZC\"\n", + "]" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "5a280bcb", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "POS_DIST_ED_ZP\n", + "POS_DIST_ED_ZP 1.000000\n", + "POS_DIST_MEDSURG_ICU_ZP 0.988096\n", + "POS_DIST_OBSTETRICS_ZP 0.986384\n", + "ACS_PCT_HOUSEHOLDER_AIAN_ZC 0.927276\n", + "POS_DIST_ALC_ZP 0.918898\n", + "ACS_PCT_AIAN_NONHISP_ZC 0.917579\n", + "ACS_PCT_AIAN_ZC 0.914488\n", + "POS_DIST_CLINIC_ZP 0.903038\n", + "ACS_PCT_TAXICAB_2WORK_ZC 0.892519\n", + "ACS_PCT_HU_PLUMBING_ZC 0.885569\n", + "ACS_PCT_OTH_LANG_ZC 0.884555\n", + "ACS_PCT_WALK_2WORK_ZC 0.879117\n", + "ACS_PCT_AIAN_COMB_ZC 0.877916\n", + "POS_DIST_TRAUMA_ZP 0.868039\n", + "POS_DIST_PED_ICU_ZP 0.854528\n", + "ACS_PCT_COMMT_15MIN_ZC 0.771051\n", + "ACS_PCT_1UP_OWNER_1ROOM_ZC 0.765801\n", + "ACS_PCT_WORK_NO_CAR_ZC 0.719171\n", + "ACS_PCT_HU_KITCHEN_ZC 0.699317\n", + "ACS_PCT_WHITE_MALE_ZC 0.672201\n", + "ACS_PCT_1UP_PERS_1ROOM_ZC 0.660086\n", + "ACS_PCT_GOVT_ZC 0.655031\n", + "ACS_PCT_ADMIN_ZC 0.580628\n", + "ACS_PCT_WALK_2WORK 0.572675\n", + "ACS_PCT_MALE_ZC 0.568362\n", + "ACS_PCT_1UP_RENT_1ROOM_ZC 0.547406\n", + "ACS_PCT_WORK_RES_M_ZC 0.543795\n", + "ACS_PCT_WORK_RES_F_ZC 0.536426\n", + "POS_MAX_DIST_MEDSURG_ICU 0.530642\n", + "ACS_PCT_TRANSPORT_ZC 0.524697\n", + "CEN_AREALAND_SQM_COUNTY 0.512579\n", + "POS_MEAN_DIST_MEDSURG_ICU 0.509278\n", + "POS_MEDIAN_DIST_MEDSURG_ICU 0.500952\n", + "Name: POS_DIST_ED_ZP, dtype: float64\n", + "--------------------\n", + "POS_DIST_CLINIC_ZP\n", + "POS_DIST_CLINIC_ZP 1.000000\n", + "POS_DIST_ED_ZP 0.903038\n", + "POS_DIST_MEDSURG_ICU_ZP 0.884424\n", + "POS_DIST_OBSTETRICS_ZP 0.868396\n", + "ACS_PCT_HOUSEHOLDER_AIAN_ZC 0.829241\n", + "ACS_PCT_WALK_2WORK_ZC 0.828634\n", + "ACS_PCT_AIAN_NONHISP_ZC 0.821046\n", + "ACS_PCT_AIAN_ZC 0.818458\n", + "ACS_PCT_TAXICAB_2WORK_ZC 0.806400\n", + "POS_DIST_ALC_ZP 0.789434\n", + "ACS_PCT_OTH_LANG_ZC 0.784808\n", + "ACS_PCT_AIAN_COMB_ZC 0.784346\n", + "POS_DIST_TRAUMA_ZP 0.759474\n", + "POS_DIST_PED_ICU_ZP 0.752168\n", + "ACS_PCT_HU_PLUMBING_ZC 0.736603\n", + "ACS_PCT_COMMT_15MIN_ZC 0.717993\n", + "ACS_PCT_WORK_NO_CAR_ZC 0.684019\n", + "ACS_PCT_1UP_OWNER_1ROOM_ZC 0.680779\n", + "ACS_PCT_WHITE_MALE_ZC 0.639838\n", + "ACS_PCT_HU_KITCHEN_ZC 0.609890\n", + "ACS_PCT_1UP_PERS_1ROOM_ZC 0.580286\n", + "ACS_PCT_GOVT_ZC 0.566926\n", + "ACS_PCT_MALE_ZC 0.542006\n", + "ACS_PCT_WALK_2WORK 0.540154\n", + "ACS_PCT_WORK_RES_M_ZC 0.508917\n", + "ACS_PCT_ADMIN_ZC 0.507875\n", + "ACS_PCT_WORK_RES_F_ZC 0.503315\n", + "Name: POS_DIST_CLINIC_ZP, dtype: float64\n", + "--------------------\n", + "POS_DIST_MEDSURG_ICU_ZP\n", + "POS_DIST_MEDSURG_ICU_ZP 1.000000\n", + "POS_DIST_ED_ZP 0.988096\n", + "POS_DIST_OBSTETRICS_ZP 0.978155\n", + "ACS_PCT_HOUSEHOLDER_AIAN_ZC 0.937344\n", + "ACS_PCT_AIAN_NONHISP_ZC 0.926517\n", + "ACS_PCT_AIAN_ZC 0.923902\n", + "POS_DIST_ALC_ZP 0.911596\n", + "ACS_PCT_TAXICAB_2WORK_ZC 0.907208\n", + "ACS_PCT_HU_PLUMBING_ZC 0.898065\n", + "ACS_PCT_AIAN_COMB_ZC 0.892599\n", + "ACS_PCT_OTH_LANG_ZC 0.889781\n", + "POS_DIST_CLINIC_ZP 0.884424\n", + "POS_DIST_PED_ICU_ZP 0.869803\n", + "POS_DIST_TRAUMA_ZP 0.866230\n", + "ACS_PCT_WALK_2WORK_ZC 0.863840\n", + "ACS_PCT_1UP_OWNER_1ROOM_ZC 0.815364\n", + "ACS_PCT_COMMT_15MIN_ZC 0.777554\n", + "ACS_PCT_WORK_NO_CAR_ZC 0.735042\n", + "ACS_PCT_HU_KITCHEN_ZC 0.732501\n", + "ACS_PCT_1UP_PERS_1ROOM_ZC 0.710804\n", + "ACS_PCT_GOVT_ZC 0.678100\n", + "ACS_PCT_WHITE_MALE_ZC 0.665863\n", + "ACS_PCT_WORK_RES_M_ZC 0.609386\n", + "ACS_PCT_1UP_RENT_1ROOM_ZC 0.602430\n", + "ACS_PCT_WORK_RES_F_ZC 0.601483\n", + "ACS_PCT_ADMIN_ZC 0.595108\n", + "ACS_PCT_WALK_2WORK 0.560798\n", + "ACS_PCT_TRANSPORT_ZC 0.555464\n", + "POS_MAX_DIST_MEDSURG_ICU 0.548869\n", + "ACS_PCT_MALE_ZC 0.547810\n", + "POS_MEAN_DIST_MEDSURG_ICU 0.531226\n", + "POS_MEDIAN_DIST_MEDSURG_ICU 0.522988\n", + "CEN_AREALAND_SQM_COUNTY 0.514529\n", + "ACS_PCT_HU_NO_VEH_ZC 0.505954\n", + "POS_MAX_DIST_PED_ICU 0.503612\n", + "Name: POS_DIST_MEDSURG_ICU_ZP, dtype: float64\n", + "--------------------\n", + "POS_DIST_TRAUMA_ZP\n", + "POS_DIST_TRAUMA_ZP 1.000000\n", + "POS_DIST_ED_ZP 0.868039\n", + "POS_DIST_MEDSURG_ICU_ZP 0.866230\n", + "POS_DIST_OBSTETRICS_ZP 0.850269\n", + "ACS_PCT_TAXICAB_2WORK_ZC 0.837769\n", + "ACS_PCT_HOUSEHOLDER_AIAN_ZC 0.829807\n", + "ACS_PCT_OTH_LANG_ZC 0.827292\n", + "ACS_PCT_AIAN_NONHISP_ZC 0.815817\n", + "ACS_PCT_AIAN_ZC 0.811268\n", + "POS_DIST_ALC_ZP 0.797241\n", + "ACS_PCT_AIAN_COMB_ZC 0.782142\n", + "ACS_PCT_HU_PLUMBING_ZC 0.781097\n", + "POS_DIST_CLINIC_ZP 0.759474\n", + "ACS_PCT_WALK_2WORK_ZC 0.724238\n", + "ACS_PCT_WORK_NO_CAR_ZC 0.719384\n", + "POS_DIST_PED_ICU_ZP 0.718584\n", + "ACS_PCT_1UP_OWNER_1ROOM_ZC 0.709269\n", + "ACS_PCT_HU_KITCHEN_ZC 0.664143\n", + "ACS_PCT_GOVT_ZC 0.610332\n", + "ACS_PCT_1UP_PERS_1ROOM_ZC 0.606886\n", + "POS_MAX_DIST_TRAUMA 0.580133\n", + "ACS_PCT_ADMIN_ZC 0.578873\n", + "POS_MEAN_DIST_TRAUMA 0.572330\n", + "ACS_PCT_COMMT_15MIN_ZC 0.569386\n", + "POS_MEDIAN_DIST_TRAUMA 0.565327\n", + "POS_MIN_DIST_TRAUMA 0.553934\n", + "ACS_PCT_HU_NO_VEH_ZC 0.546764\n", + "ACS_PCT_1UP_RENT_1ROOM_ZC 0.506863\n", + "Name: POS_DIST_TRAUMA_ZP, dtype: float64\n", + "--------------------\n", + "ACS_MEDIAN_HH_INC_ZC\n", + "ACS_MEDIAN_HH_INC_ZC 1.000000\n", + "ACS_MEDIAN_INC_M_ZC 0.976524\n", + "ACS_MEDIAN_NONVET_INC_ZC 0.975993\n", + "ACS_PER_CAPITA_INC_ZC 0.973104\n", + "ACS_PCT_HH_INC_100000_ZC 0.968164\n", + "ACS_MEDIAN_INC_F_ZC 0.956386\n", + "ACS_MEDIAN_HH_INC_WHITE_ZC 0.897011\n", + "ACS_MEDIAN_VET_INC_ZC 0.881611\n", + "ACS_PCT_PERSON_INC_ABOVE200_ZC 0.878595\n", + "ACS_MDN_OWNER_COST_NO_MORTG_ZC 0.872971\n", + "ACS_MEDIAN_RENT_ZC 0.786098\n", + "ACS_MDN_OWNER_COST_MORTGAGE_ZC 0.782891\n", + "ACS_PCT_VET_LABOR_FORCE_18_64_ZC 0.777162\n", + "ACS_PCT_POSTHS_ED_ZC 0.705948\n", + "ACS_MDN_OWNER_COST_NO_MORTG 0.684332\n", + "ACS_MEDIAN_HOME_VALUE_ZC 0.667285\n", + "ACS_PCT_OTH_EURP_ZC 0.655499\n", + "ACS_PCT_HH_INC_99999_ZC 0.634476\n", + "ACS_PCT_GRADUATE_DGR_ZC 0.629223\n", + "ACS_PCT_GRANDP_NO_RESPS_ZC 0.627055\n", + "ACS_PCT_BACHELOR_DGR_ZC 0.626010\n", + "ACS_PER_CAPITA_INC 0.624716\n", + "ACS_MEDIAN_HH_INC 0.619753\n", + "ACS_PCT_PERSON_INC_ABOVE200 0.613196\n", + "ACS_PCT_EMPLOYED_ZC 0.612877\n", + "ACS_MEDIAN_NONVET_INC 0.603352\n", + "ACS_MEDIAN_INC_F 0.597511\n", + "ACS_PCT_HH_INC_100000 0.587076\n", + "ACS_PCT_PUB_COMMT_60MINUP_ZC 0.571969\n", + "ACS_MEDIAN_INC_M 0.568922\n", + "ACS_MDN_OWNER_COST_MORTGAGE 0.552447\n", + "ACS_PCT_CTZ_NATURALIZED_ZC 0.539160\n", + "ACS_PCT_CTZ_NONUS_BORN_ZC 0.535948\n", + "ACS_PCT_ASIAN_NONHISP_ZC 0.519179\n", + "ACS_MEDIAN_RENT 0.518978\n", + "ACS_PCT_ASIAN_ZC 0.506963\n", + "Name: ACS_MEDIAN_HH_INC_ZC, dtype: float64\n", + "--------------------\n", + "ACS_PCT_INC50_ZC\n", + "ACS_PCT_INC50_ZC 1.000000\n", + "ACS_PCT_INC50_BELOW17_ZC 0.992580\n", + "ACS_PCT_HH_INC_10000_ZC 0.979274\n", + "ACS_PCT_PERSON_INC_BELOW99_ZC 0.977982\n", + "ACS_PCT_HH_FOOD_STMP_BLW_POV_ZC 0.962187\n", + " ... \n", + "ACS_PCT_NO_WORK_NO_SCHL_16_19_ZC 0.518884\n", + "ACS_PCT_ENGL_WELL 0.518080\n", + "ACS_PCT_HH_INC_14999 0.509572\n", + "ACS_PCT_DIVORCED_M_ZC 0.509517\n", + "ACS_PCT_PERSON_INC_125_199_ZC 0.500738\n", + "Name: ACS_PCT_INC50_ZC, Length: 84, dtype: float64\n", + "--------------------\n", + "ACS_PCT_UNEMPLOY_ZC\n", + "ACS_PCT_UNEMPLOY_ZC 1.000000\n", + "ACS_PCT_VET_UNEMPL_18_64_ZC 0.874774\n", + "ACS_PCT_NO_WORK_NO_SCHL_16_19_ZC 0.814067\n", + "ACS_PCT_HH_PUB_ASSIST_ZC 0.788170\n", + "ACS_PCT_HH_FOOD_STMP_ZC 0.780872\n", + " ... \n", + "ACS_PCT_RETAIL_ZC 0.508951\n", + "ACS_PCT_HH_KID_1PRNT 0.508790\n", + "ACS_PCT_ENGL_WELL_ZC 0.504342\n", + "POINT_ZIP 0.502519\n", + "ACS_PCT_MARRIED_SP_AB_M_ZC 0.501402\n", + "Name: ACS_PCT_UNEMPLOY_ZC, Length: 78, dtype: float64\n", + "--------------------\n", + "ACS_PER_CAPITA_INC_ZC\n", + "ACS_PER_CAPITA_INC_ZC 1.000000\n", + "ACS_MEDIAN_HH_INC_ZC 0.973104\n", + "ACS_MEDIAN_NONVET_INC_ZC 0.970534\n", + "ACS_MEDIAN_INC_F_ZC 0.967157\n", + "ACS_MEDIAN_INC_M_ZC 0.962445\n", + "ACS_PCT_HH_INC_100000_ZC 0.960626\n", + "ACS_MEDIAN_HH_INC_WHITE_ZC 0.883687\n", + "ACS_MEDIAN_VET_INC_ZC 0.871086\n", + "ACS_PCT_PERSON_INC_ABOVE200_ZC 0.856831\n", + "ACS_MDN_OWNER_COST_NO_MORTG_ZC 0.854019\n", + "ACS_MEDIAN_RENT_ZC 0.783737\n", + "ACS_MDN_OWNER_COST_MORTGAGE_ZC 0.769192\n", + "ACS_PCT_POSTHS_ED_ZC 0.740630\n", + "ACS_PCT_VET_LABOR_FORCE_18_64_ZC 0.735704\n", + "ACS_PCT_BACHELOR_DGR_ZC 0.674815\n", + "ACS_PCT_OTH_EURP_ZC 0.672997\n", + "ACS_MEDIAN_HOME_VALUE_ZC 0.671244\n", + "ACS_MDN_OWNER_COST_NO_MORTG 0.663898\n", + "ACS_PCT_GRADUATE_DGR_ZC 0.646656\n", + "ACS_PER_CAPITA_INC 0.630577\n", + "ACS_PCT_EMPLOYED_ZC 0.628539\n", + "ACS_PCT_GRANDP_NO_RESPS_ZC 0.621920\n", + "ACS_MEDIAN_INC_F 0.602505\n", + "ACS_MEDIAN_HH_INC 0.594242\n", + "ACS_MEDIAN_NONVET_INC 0.594218\n", + "ACS_PCT_HH_INC_99999_ZC 0.589149\n", + "ACS_PCT_PERSON_INC_ABOVE200 0.587281\n", + "ACS_PCT_HH_INC_100000 0.574220\n", + "ACS_PCT_PUB_COMMT_60MINUP_ZC 0.556878\n", + "ACS_MEDIAN_INC_M 0.552087\n", + "ACS_PCT_CTZ_NONUS_BORN_ZC 0.545144\n", + "ACS_PCT_CTZ_NATURALIZED_ZC 0.545124\n", + "ACS_MDN_OWNER_COST_MORTGAGE 0.535307\n", + "ACS_MEDIAN_RENT 0.507517\n", + "ACS_PCT_PVT_NONPROFIT_ZC 0.500823\n", + "Name: ACS_PER_CAPITA_INC_ZC, dtype: float64\n", + "--------------------\n", + "ACS_GINI_INDEX_ZC\n", + "ACS_GINI_INDEX_ZC 1.000000\n", + "ACS_PCT_CHILD_1FAM_ZC 0.854019\n", + "ACS_PCT_INC50_ZC 0.847305\n", + "ACS_PCT_INC50_BELOW17_ZC 0.842471\n", + "ACS_PCT_PERSON_INC_BELOW99_ZC 0.835611\n", + " ... \n", + "ACS_PCT_HH_INC_24999_ZC 0.529216\n", + "ACS_PCT_LT_HS 0.521218\n", + "ACS_PCT_AGE_18_44_ZC 0.514940\n", + "NOAAC_AVG_TEMP_DEC 0.504505\n", + "NOAAC_MAX_TEMP_DEC 0.503460\n", + "Name: ACS_GINI_INDEX_ZC, Length: 88, dtype: float64\n", + "--------------------\n", + "ACS_PCT_RENTER_HU_COST_50PCT_ZC\n", + "ACS_PCT_RENTER_HU_COST_50PCT_ZC 1.000000\n", + "ACS_PCT_RENTER_HU_COST_30PCT_ZC 0.976832\n", + "ACS_PCT_UNEMPLOY_ZC 0.773179\n", + "ACS_TOT_HU_ZC 0.750174\n", + "ACS_PCT_DIVORCED_F_ZC 0.744139\n", + " ... \n", + "ACS_PCT_POV_BLACK_ZC 0.523684\n", + "ACS_PCT_RENTER_HU_ZC 0.515208\n", + "ACS_PCT_HOUSEHOLDER_BLACK_ZC 0.512418\n", + "ACS_PCT_BLACK_ZC 0.508544\n", + "NOAAC_MAX_TEMP_DEC 0.502461\n", + "Name: ACS_PCT_RENTER_HU_COST_50PCT_ZC, Length: 73, dtype: float64\n", + "--------------------\n", + "ACS_PCT_VACANT_HU_ZC\n", + "ACS_PCT_VACANT_HU_ZC 1.000000\n", + "ACS_PCT_GOVT_ZC 0.555455\n", + "ACS_PCT_HU_PLUMBING_ZC 0.553937\n", + "ACS_PCT_HU_KITCHEN_ZC 0.548944\n", + "POS_DIST_OBSTETRICS_ZP 0.503378\n", + "ACS_PCT_HU_WOOD_ZC 0.503217\n", + "Name: ACS_PCT_VACANT_HU_ZC, dtype: float64\n", + "--------------------\n", + "ACS_MEDIAN_RENT_ZC\n", + "ACS_MEDIAN_RENT_ZC 1.000000\n", + "ACS_MDN_OWNER_COST_MORTGAGE_ZC 0.915022\n", + "ACS_MEDIAN_HOME_VALUE_ZC 0.872416\n", + "ACS_PCT_CTZ_NONUS_BORN_ZC 0.861338\n", + "ACS_PCT_HH_INC_100000_ZC 0.861209\n", + "ACS_PCT_CTZ_NATURALIZED_ZC 0.852209\n", + "ACS_MEDIAN_HH_INC_WHITE_ZC 0.838938\n", + "ACS_PCT_GRADUATE_DGR_ZC 0.826070\n", + "ACS_MEDIAN_VET_INC_ZC 0.806309\n", + "ACS_MEDIAN_INC_F_ZC 0.802605\n", + "ACS_PCT_FOREIGN_BORN_ZC 0.788537\n", + "ACS_MEDIAN_HH_INC_ZC 0.786098\n", + "ACS_PER_CAPITA_INC_ZC 0.783737\n", + "ACS_PCT_PROFESS_ZC 0.764796\n", + "ACS_PCT_PUB_COMMT_60MINUP_ZC 0.752681\n", + "ACS_MDN_OWNER_COST_NO_MORTG_ZC 0.749628\n", + "ACS_PCT_ASIAN_NONHISP_ZC 0.735920\n", + "ACS_PCT_ASIAN_ZC 0.728400\n", + "ACS_PCT_OTHER_NONHISP_ZC 0.726848\n", + "ACS_PCT_API_LANG_ZC 0.717356\n", + "ACS_MEDIAN_NONVET_INC_ZC 0.702306\n", + "ACS_MEDIAN_INC_M_ZC 0.692749\n", + "ACS_PCT_HOUSEHOLDER_ASIAN_ZC 0.691561\n", + "ACS_PCT_OTH_EURP_ZC 0.687836\n", + "ACS_PCT_NON_CITIZEN_ZC 0.682458\n", + "ACS_TOT_POP_US_ABOVE1_ZC 0.679742\n", + "ACS_PCT_VET_BACHELOR_ZC 0.674929\n", + "ACS_PCT_ASIAN_COMB_ZC 0.674718\n", + "ACS_PCT_10UNITS_ZC 0.665078\n", + "ACS_MEDIAN_RENT 0.651521\n", + "ACS_PCT_INFORM_ZC 0.625354\n", + "ACS_PCT_BACHELOR_DGR_ZC 0.614815\n", + "ACS_PCT_NONCTN_2000_ZC 0.612574\n", + "ACS_MDN_OWNER_COST_MORTGAGE 0.610484\n", + "ACS_PCT_PUBL_TRANSIT_ZC 0.610377\n", + "ACS_PCT_POSTHS_ED_ZC 0.593022\n", + "ACS_TOT_WORKER_HH_ZC 0.587610\n", + "ACS_TOT_CIVIL_EMPLOY_POP_ZC 0.584839\n", + "ACS_TOT_WORKER_NWFH_ZC 0.577523\n", + "ACS_PCT_GRANDP_NO_RESPS_ZC 0.564256\n", + "ACS_MEDIAN_HOME_VALUE 0.553079\n", + "ACS_PCT_NONCTN_1999_ZC 0.548656\n", + "ACS_TOT_CIVILIAN_LABOR_ZC 0.540723\n", + "ACS_MDN_OWNER_COST_NO_MORTG 0.536968\n", + "ACS_PCT_CTZ_NONUS_BORN 0.536849\n", + "ACS_PCT_NONCTN_1990_ZC 0.530141\n", + "ACS_PCT_FINANCE_ZC 0.529439\n", + "ACS_PCT_CTZ_NATURALIZED 0.526250\n", + "ACS_PCT_HH_INC_100000 0.504176\n", + "Name: ACS_MEDIAN_RENT_ZC, dtype: float64\n", + "--------------------\n", + "ACS_PCT_OWNER_HU_COST_30PCT_ZC\n", + "ACS_PCT_OWNER_HU_COST_30PCT_ZC 1.000000\n", + "ACS_PCT_OWNER_HU_COST_50PCT_ZC 0.967353\n", + "ACS_PCT_INFORM_ZC 0.713090\n", + "ACS_PCT_OWNER_HU_COST_30PCT 0.709282\n", + "ACS_PCT_RENTER_HU_COST_30PCT_ZC 0.681229\n", + "ACS_MDN_OWNER_COST_MORTGAGE_ZC 0.646134\n", + "ACS_MEDIAN_HOME_VALUE_ZC 0.629973\n", + "ACS_PCT_RENTER_HU_COST_50PCT_ZC 0.629615\n", + "ACS_PCT_PROFESS_ZC 0.624824\n", + "ACS_PCT_OWNER_HU_COST_50PCT 0.617856\n", + "ACS_TOT_CIVILIAN_LABOR_ZC 0.605337\n", + "ACS_TOT_CIVIL_VET_POP_ABOVE25_ZC 0.603297\n", + "ACS_PCT_CTZ_NATURALIZED_ZC 0.600621\n", + "ACS_TOT_CIVIL_VET_POP_ZC 0.600615\n", + "ACS_PCT_CTZ_NONUS_BORN_ZC 0.598307\n", + "ACS_PCT_NONCTN_2000_ZC 0.591667\n", + "ACS_TOT_CIVIL_EMPLOY_POP_ZC 0.585008\n", + "ACS_TOT_WORKER_HH_ZC 0.580168\n", + "ACS_TOT_WORKER_NWFH_ZC 0.579548\n", + "ACS_PCT_GRADUATE_DGR_ZC 0.574305\n", + "ACS_TOT_HH_ZC 0.572885\n", + "ACS_PCT_VET_UNEMPL_18_64_ZC 0.569964\n", + "ACS_TOT_POP_ABOVE25_ZC 0.568245\n", + "ACS_TOT_CIVIL_POP_ABOVE18_ZC 0.566986\n", + "ACS_TOT_POP_ABOVE16_ZC 0.566928\n", + "ACS_PCT_VET_BACHELOR_ZC 0.566746\n", + "ACS_TOT_POP_ABOVE15_ZC 0.566670\n", + "ACS_PCT_10UNITS_ZC 0.565442\n", + "ACS_TOT_POP_16_19_ZC 0.562038\n", + "ACS_TOT_POP_ABOVE5_ZC 0.561788\n", + "ACS_TOT_POP_WT_ZC 0.560406\n", + "ACS_TOT_POP_POV_ZC 0.559432\n", + "ACS_TOT_HU_ZC 0.557984\n", + "ACS_PCT_FOREIGN_BORN_ZC 0.551283\n", + "ACS_TOT_OWN_CHILD_BELOW17_ZC 0.540309\n", + "ACS_TOT_POP_US_ABOVE1_ZC 0.532361\n", + "ACS_PCT_PUBL_TRANSIT_ZC 0.525395\n", + "ACS_PCT_OTHER_NONHISP_ZC 0.524307\n", + "ACS_PCT_ART_ZC 0.509693\n", + "ACS_PCT_UNEMPLOY_ZC 0.509443\n", + "ACS_PCT_OTH_EURP_ZC 0.506790\n", + "Name: ACS_PCT_OWNER_HU_COST_30PCT_ZC, dtype: float64\n", + "--------------------\n", + "ACS_PCT_HH_FOOD_STMP_ZC\n", + "ACS_PCT_HH_FOOD_STMP_ZC 1.000000\n", + "ACS_PCT_HH_PUB_ASSIST_ZC 0.998079\n", + "ACS_PCT_HH_FOOD_STMP_BLW_POV_ZC 0.969125\n", + "ACS_PCT_HH_1FAM_FOOD_STMP_ZC 0.935566\n", + "ACS_PCT_PERSON_INC_BELOW99_ZC 0.926651\n", + " ... \n", + "ACS_PCT_SPANISH 0.533763\n", + "ACS_PCT_RENTER_HU_CHILD_ZC 0.526587\n", + "ACS_TOT_HU_ZC 0.526501\n", + "ACS_PCT_LT_HS 0.508200\n", + "ACS_PCT_VET_UNEMPL_18_64_ZC 0.506039\n", + "Name: ACS_PCT_HH_FOOD_STMP_ZC, Length: 69, dtype: float64\n", + "--------------------\n", + "ACS_PCT_HH_PUB_ASSIST_ZC\n" + ] + } + ], + "source": [ + "# finding correlated features for each target group\n", + "for targen in potential_targets:\n", + " print(targen)\n", + " corr = data.corr()[targen].sort_values(ascending=False)\n", + " print(corr[corr > 0.5])\n", + " \n", + " print(\"-\"*20)" + ] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "1e802373", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import torch\n", + "import torch.nn as nn\n", + "from torch.utils.data import Dataset, DataLoader\n", + "from sklearn.model_selection import train_test_split\n", + "from sklearn.preprocessing import StandardScaler\n", + "from sklearn.feature_selection import mutual_info_regression\n", + "import numpy as np\n", + "import os\n", + "from torch.utils.tensorboard import SummaryWriter\n", + "\n", + "# # Load your dataset (replace with your path)\n", + "# data = pd.read_csv(r\"D:\\hackToFuture\\merged_data\\final_merged_dataframe.csv\")\n", + "# data = data.drop(columns=[\"COUNTY\"])\n", + "\n", + "# # Define target categories\n", + "# healthcare_targets = [\n", + "# \"POS_DIST_ED_ZP\",\n", + "# \"POS_DIST_CLINIC_ZP\",\n", + "# \"POS_DIST_MEDSURG_ICU_ZP\",\n", + "# \"POS_DIST_TRAUMA_ZP\",\n", + "# ]\n", + "\n", + "# dummuy_cols = pd.get_dummies(data[data.select_dtypes(include=['object']).columns.tolist()], drop_first=True,dtype='int')\n", + "\n", + "# data = pd.concat([data, dummuy_cols], axis=1)\n", + "# data = data.drop(columns=data.select_dtypes(include=['object']).columns.tolist())" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "67bd0796", + "metadata": {}, + "outputs": [], + "source": [ + "# data.to_csv(r\"D:\\hackToFuture\\merged_data\\final_final_merged_dataframe.csv\", index=False)\n", + "data = pd.read_csv(r\"D:\\hackToFuture\\merged_data\\final_final_merged_dataframe.csv\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "7a3b0297", + "metadata": {}, + "outputs": [], + "source": [ + "# Define function to select independent features using correlation + mutual information\n", + "def select_features(X, y, top_k=15):\n", + " correlations = X.corrwith(y.mean(axis=1)).abs()\n", + " mutual_info = mutual_info_regression(X, y.mean(axis=1))\n", + " scores = (correlations + mutual_info) / 2\n", + " selected_features = scores.sort_values(ascending=False).head(top_k).index.tolist()\n", + " return selected_features\n", + "\n", + "# Select inputs and targets for Healthcare Accessibility\n", + "y_healthcare = data[healthcare_targets].dropna()\n", + "X_all = data.drop(columns=healthcare_targets)\n", + "X_healthcare = X_all.loc[y_healthcare.index]\n", + "selected_features = select_features(X_healthcare, y_healthcare)\n", + "X_healthcare = X_healthcare[selected_features]\n", + "\n", + "# Normalize inputs\n", + "scaler_X = StandardScaler()\n", + "X_scaled = scaler_X.fit_transform(X_healthcare)\n", + "scaler_y = StandardScaler()\n", + "y_scaled = scaler_y.fit_transform(y_healthcare)\n", + "\n", + "# Split the data\n", + "X_train, X_val, y_train, y_val = train_test_split(X_scaled, y_scaled, test_size=0.2, random_state=42)\n", + "\n", + "# Dataset class\n", + "class SocioHealthDataset(Dataset):\n", + " def __init__(self, X, y):\n", + " self.X = torch.tensor(X, dtype=torch.float32)\n", + " self.y = torch.tensor(y, dtype=torch.float32)\n", + "\n", + " def __len__(self):\n", + " return len(self.X)\n", + "\n", + " def __getitem__(self, idx):\n", + " return self.X[idx], self.y[idx]\n", + "\n", + "train_dataset = SocioHealthDataset(X_train, y_train)\n", + "val_dataset = SocioHealthDataset(X_val, y_val)\n", + "train_loader = DataLoader(train_dataset, batch_size=64, shuffle=True)\n", + "val_loader = DataLoader(val_dataset, batch_size=64, shuffle=False)\n", + "\n", + "# Model with LSTM + MLP for long-term dependencies\n", + "class HealthcareModel(nn.Module):\n", + " def __init__(self, input_dim, output_dim):\n", + " super(HealthcareModel, self).__init__()\n", + " self.lstm = nn.LSTM(input_dim, 64, batch_first=True)\n", + " self.fc1 = nn.Linear(64, 128)\n", + " self.fc2 = nn.Linear(128, output_dim)\n", + " self.relu = nn.ReLU()\n", + "\n", + " def forward(self, x):\n", + " x = x.unsqueeze(1) # LSTM expects (batch, seq_len, input_size)\n", + " out, _ = self.lstm(x)\n", + " x = self.relu(self.fc1(out[:, -1, :]))\n", + " x = self.fc2(x)\n", + " return x\n", + "\n", + "# Initialize model, loss, optimizer\n", + "model = HealthcareModel(input_dim=X_train.shape[1], output_dim=y_train.shape[1])\n", + "criterion = nn.MSELoss()\n", + "optimizer = torch.optim.Adam(model.parameters(), lr=0.001)\n", + "\n", + "# TensorBoard writer\n", + "writer = SummaryWriter(\"runs/healthcare_model\")\n", + "\n", + "# Train function with early stopping\n", + "\n", + "def train_model(model, train_loader, val_loader, criterion, optimizer, epochs=50, device='cpu', patience=5):\n", + " model.to(device)\n", + " best_loss = float('inf')\n", + " patience_counter = 0\n", + "\n", + " for epoch in range(epochs):\n", + " model.train()\n", + " running_loss = 0.0\n", + " for features, targets in train_loader:\n", + " features, targets = features.to(device), targets.to(device)\n", + "\n", + " optimizer.zero_grad()\n", + " outputs = model(features)\n", + " loss = criterion(outputs, targets)\n", + " loss.backward()\n", + " optimizer.step()\n", + "\n", + " running_loss += loss.item()\n", + "\n", + " avg_train_loss = running_loss / len(train_loader)\n", + "\n", + " model.eval()\n", + " val_loss = 0.0\n", + " with torch.no_grad():\n", + " for features, targets in val_loader:\n", + " features, targets = features.to(device), targets.to(device)\n", + " outputs = model(features)\n", + " loss = criterion(outputs, targets)\n", + " val_loss += loss.item()\n", + "\n", + " avg_val_loss = val_loss / len(val_loader)\n", + "\n", + " writer.add_scalars('Loss', {\n", + " 'Train': avg_train_loss,\n", + " 'Validation': avg_val_loss\n", + " }, epoch)\n", + "\n", + " print(f\"Epoch {epoch+1}/{epochs}, Train Loss: {avg_train_loss:.4f}, Val Loss: {avg_val_loss:.4f}\")\n", + "\n", + " # Early stopping\n", + " if avg_val_loss < best_loss:\n", + " best_loss = avg_val_loss\n", + " patience_counter = 0\n", + " torch.save(model.state_dict(), 'best_healthcare_model.pth')\n", + " torch.save(model.state_dict(), 'best_healthcare_model.h5')\n", + " else:\n", + " patience_counter += 1\n", + " if patience_counter >= patience:\n", + " print(\"Early stopping triggered\")\n", + " break\n", + "\n", + " print(\"Training complete.\")\n", + "\n", + "train_model(model, train_loader, val_loader, criterion, optimizer, device='cuda' if torch.cuda.is_available() else 'cpu')\n" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "id": "198e4bd8", + "metadata": {}, + "outputs": [], + "source": [ + "# saving model\n", + "torch.save(model.state_dict(), 'best_healthcare_model.h5')" + ] + }, + { + "cell_type": "code", + "execution_count": 17, + "id": "71a3c429", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Mean Squared Error (MSE): 1.4126\n", + "Mean Absolute Error (MAE): 0.3849\n" + ] + } + ], + "source": [ + "from sklearn.metrics import mean_squared_error, mean_absolute_error\n", + "\n", + "# Set the model to evaluation mode\n", + "model.eval()\n", + "\n", + "# Move data to the appropriate device\n", + "device = 'cuda' if torch.cuda.is_available() else 'cpu'\n", + "model.to(device)\n", + "\n", + "# Collect predictions and true values\n", + "y_pred = []\n", + "y_true = []\n", + "\n", + "with torch.no_grad():\n", + " for features, targets in val_loader:\n", + " features, targets = features.to(device), targets.to(device)\n", + " outputs = model(features)\n", + " y_pred.append(outputs.cpu().numpy())\n", + " y_true.append(targets.cpu().numpy())\n", + "\n", + "# Convert lists to numpy arrays\n", + "y_pred = np.vstack(y_pred)\n", + "y_true = np.vstack(y_true)\n", + "\n", + "# Inverse transform the scaled predictions and true values\n", + "y_pred_original = scaler_y.inverse_transform(y_pred)\n", + "y_true_original = scaler_y.inverse_transform(y_true)\n", + "\n", + "# Calculate metrics\n", + "mse = mean_squared_error(y_true_original, y_pred_original)\n", + "mae = mean_absolute_error(y_true_original, y_pred_original)\n", + "\n", + "print(f\"Mean Squared Error (MSE): {mse:.4f}\")\n", + "print(f\"Mean Absolute Error (MAE): {mae:.4f}\")" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "id": "ab532ea6", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Mean Squared Error (MSE): 1.4126\n", + "Mean Absolute Error (MAE): 0.3849\n", + "R-squared (R2): 0.9843\n" + ] + } + ], + "source": [ + "from sklearn.metrics import r2_score\n", + "\n", + "# Calculate R-squared\n", + "r2 = r2_score(y_true_original, y_pred_original)\n", + "\n", + "# Print metrics\n", + "print(f\"Mean Squared Error (MSE): {mse:.4f}\")\n", + "print(f\"Mean Absolute Error (MAE): {mae:.4f}\")\n", + "print(f\"R-squared (R2): {r2:.4f}\")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "e44919e6", + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "\n", + "--- Training model for category: Income and Employment Stress ---\n", + "Epoch 1, Train Loss: 680927194.2857, Val Loss: 680030037.0989\n", + "Epoch 2, Train Loss: 664539615.8242, Val Loss: 650066582.5055\n", + "Epoch 3, Train Loss: 625352626.1978, Val Loss: 605523444.7473\n", + "Epoch 4, Train Loss: 577855821.7143, Val Loss: 554066370.8132\n", + "Epoch 5, Train Loss: 522960971.1648, Val Loss: 495693097.8462\n", + "Epoch 6, Train Loss: 461862502.0659, Val Loss: 430691636.7473\n", + "Epoch 7, Train Loss: 394547134.2418, Val Loss: 363374156.6593\n", + "Epoch 8, Train Loss: 329610143.5604, Val Loss: 300426159.4725\n", + "Epoch 9, Train Loss: 269997682.9451, Val Loss: 243674963.8681\n", + "Epoch 10, Train Loss: 217115219.3407, Val Loss: 194292824.6154\n", + "Epoch 11, Train Loss: 171664573.6484, Val Loss: 152780002.3736\n", + "Epoch 12, Train Loss: 134010343.4286, Val Loss: 118819092.8352\n", + "Epoch 13, Train Loss: 103815570.0220, Val Loss: 91508855.8242\n", + "Epoch 14, Train Loss: 79490796.8352, Val Loss: 69602900.7912\n", + "Epoch 15, Train Loss: 59736495.6703, Val Loss: 51956375.2527\n", + "Epoch 16, Train Loss: 44374895.1593, Val Loss: 38346818.3736\n", + "Epoch 17, Train Loss: 32421497.3104, Val Loss: 28194364.4945\n", + "Epoch 18, Train Loss: 23928903.2775, Val Loss: 21016960.1429\n", + "Epoch 19, Train Loss: 17962292.3791, Val Loss: 16068883.6813\n", + "Epoch 20, Train Loss: 13937325.5021, Val Loss: 12754666.1264\n", + "Epoch 21, Train Loss: 11292352.9533, Val Loss: 10589620.1813\n", + "Epoch 22, Train Loss: 9558936.8180, Val Loss: 9191646.6484\n", + "Epoch 23, Train Loss: 8377081.5979, Val Loss: 8154029.5975\n", + "Epoch 24, Train Loss: 7495840.0283, Val Loss: 7337544.3132\n", + "Epoch 25, Train Loss: 6749242.7930, Val Loss: 6684799.3929\n", + "Epoch 26, Train Loss: 6192945.4310, Val Loss: 6180146.3180\n", + "Epoch 27, Train Loss: 5752384.1338, Val Loss: 5769799.6360\n", + "Epoch 28, Train Loss: 5363308.6468, Val Loss: 5358893.0062\n", + "Epoch 29, Train Loss: 4982225.6870, Val Loss: 4774557.5034\n", + "Epoch 30, Train Loss: 4501391.3999, Val Loss: 4408459.1030\n", + "Epoch 31, Train Loss: 3449387.1320, Val Loss: 2773402.2940\n", + "Epoch 32, Train Loss: 2485914.4650, Val Loss: 2407326.8297\n", + "Epoch 33, Train Loss: 1911509.5633, Val Loss: 1769554.8314\n", + "Epoch 34, Train Loss: 1376616.5452, Val Loss: 1345420.3443\n", + "Epoch 35, Train Loss: 1112862.3587, Val Loss: 1107439.9200\n", + "Epoch 36, Train Loss: 911934.2488, Val Loss: 919591.3585\n", + "Epoch 37, Train Loss: 768416.8830, Val Loss: 777565.3048\n", + "Epoch 38, Train Loss: 634542.1975, Val Loss: 639846.4097\n", + "Epoch 39, Train Loss: 526248.7261, Val Loss: 542244.8365\n", + "Epoch 40, Train Loss: 447530.8113, Val Loss: 460618.9590\n", + "Epoch 41, Train Loss: 386445.4081, Val Loss: 405308.7746\n", + "Epoch 42, Train Loss: 347799.0846, Val Loss: 367402.8597\n", + "Epoch 43, Train Loss: 319791.2757, Val Loss: 337869.2080\n", + "Epoch 44, Train Loss: 296959.4549, Val Loss: 310441.1492\n", + "Epoch 45, Train Loss: 276751.8189, Val Loss: 288462.9505\n", + "Epoch 46, Train Loss: 259646.0666, Val Loss: 272148.2916\n", + "Epoch 47, Train Loss: 247081.0625, Val Loss: 257150.6295\n", + "Epoch 48, Train Loss: 233567.9704, Val Loss: 243894.9312\n", + "Epoch 49, Train Loss: 223109.9532, Val Loss: 231298.2083\n", + "Epoch 50, Train Loss: 213301.0539, Val Loss: 220935.7809\n", + "Epoch 51, Train Loss: 204143.5912, Val Loss: 211998.9695\n", + "Epoch 52, Train Loss: 195228.1885, Val Loss: 202378.6766\n", + "Epoch 53, Train Loss: 186323.0901, Val Loss: 192389.3236\n", + "Epoch 54, Train Loss: 177404.0836, Val Loss: 183780.8876\n", + "Epoch 55, Train Loss: 169135.1575, Val Loss: 175136.6865\n", + "Epoch 56, Train Loss: 161196.7390, Val Loss: 169511.4292\n", + "Epoch 57, Train Loss: 152397.3873, Val Loss: 157955.9141\n", + "Epoch 58, Train Loss: 143848.4660, Val Loss: 149755.9015\n", + "Epoch 59, Train Loss: 135697.6751, Val Loss: 142809.5202\n", + "Epoch 60, Train Loss: 128375.4980, Val Loss: 134914.9353\n", + "Epoch 61, Train Loss: 120382.7033, Val Loss: 126005.9282\n", + "Epoch 62, Train Loss: 112953.1384, Val Loss: 119763.3340\n", + "Epoch 63, Train Loss: 106066.4278, Val Loss: 110585.6554\n", + "Epoch 64, Train Loss: 98304.0516, Val Loss: 103891.7762\n", + "Epoch 65, Train Loss: 92140.0488, Val Loss: 97098.3034\n", + "Epoch 66, Train Loss: 84019.6373, Val Loss: 87784.9911\n", + "Epoch 67, Train Loss: 76670.6815, Val Loss: 82182.9035\n", + "Epoch 68, Train Loss: 70503.4525, Val Loss: 76361.3735\n", + "Epoch 69, Train Loss: 64156.5600, Val Loss: 69750.1666\n", + "Epoch 70, Train Loss: 59339.3580, Val Loss: 64410.2011\n", + "Epoch 71, Train Loss: 54994.5516, Val Loss: 60413.6419\n", + "Epoch 72, Train Loss: 51220.2672, Val Loss: 56174.5164\n", + "Epoch 73, Train Loss: 47814.5005, Val Loss: 53983.7848\n", + "Epoch 74, Train Loss: 44918.4518, Val Loss: 50591.0117\n", + "Epoch 75, Train Loss: 42355.4223, Val Loss: 46716.4758\n", + "Epoch 76, Train Loss: 39363.8103, Val Loss: 46843.4467\n", + "Epoch 77, Train Loss: 36826.5361, Val Loss: 41179.5703\n", + "Epoch 78, Train Loss: 34510.7293, Val Loss: 38825.6931\n", + "Epoch 79, Train Loss: 32174.9828, Val Loss: 36316.1103\n", + "Epoch 80, Train Loss: 31095.1372, Val Loss: 34146.3747\n", + "Epoch 81, Train Loss: 28531.6429, Val Loss: 32556.7079\n", + "Epoch 82, Train Loss: 27111.5468, Val Loss: 32662.4011\n", + "Epoch 83, Train Loss: 26099.4671, Val Loss: 31015.3021\n", + "Epoch 84, Train Loss: 24777.0438, Val Loss: 28503.9600\n", + "Epoch 85, Train Loss: 23480.6119, Val Loss: 28044.0726\n", + "Epoch 86, Train Loss: 22145.9886, Val Loss: 26587.4105\n", + "Epoch 87, Train Loss: 21291.3310, Val Loss: 25346.1921\n", + "Epoch 88, Train Loss: 19933.8161, Val Loss: 25181.1694\n", + "Epoch 89, Train Loss: 19309.1787, Val Loss: 23358.0875\n", + "Epoch 90, Train Loss: 18304.9500, Val Loss: 23685.6752\n", + "Epoch 91, Train Loss: 17446.0167, Val Loss: 21397.4245\n", + "Epoch 92, Train Loss: 16944.7178, Val Loss: 21637.2072\n", + "Epoch 93, Train Loss: 16195.5044, Val Loss: 20669.9144\n", + "Epoch 94, Train Loss: 15513.4062, Val Loss: 20667.5631\n", + "Epoch 95, Train Loss: 15004.2577, Val Loss: 19209.1146\n", + "Epoch 96, Train Loss: 14765.4533, Val Loss: 19478.6431\n", + "Epoch 97, Train Loss: 14219.8050, Val Loss: 19612.6027\n", + "Epoch 98, Train Loss: 13802.7109, Val Loss: 18101.0485\n", + "Epoch 99, Train Loss: 12940.4760, Val Loss: 18666.6436\n", + "Epoch 100, Train Loss: 13158.7751, Val Loss: 19487.7048\n", + "Epoch 101, Train Loss: 12902.1446, Val Loss: 16507.3623\n", + "Epoch 102, Train Loss: 11912.4825, Val Loss: 16014.3094\n", + "Epoch 103, Train Loss: 12036.3933, Val Loss: 15801.4106\n", + "Epoch 104, Train Loss: 11669.2387, Val Loss: 17677.7033\n", + "Epoch 105, Train Loss: 11515.0485, Val Loss: 16715.2012\n", + "Epoch 106, Train Loss: 10972.4246, Val Loss: 14823.4947\n", + "Epoch 107, Train Loss: 10977.3646, Val Loss: 15785.8582\n", + "Epoch 108, Train Loss: 10562.1774, Val Loss: 14824.3701\n", + "Epoch 109, Train Loss: 10147.0491, Val Loss: 13901.3301\n", + "Epoch 110, Train Loss: 10132.1041, Val Loss: 14306.9633\n", + "Epoch 111, Train Loss: 9819.9804, Val Loss: 14553.0790\n", + "Epoch 112, Train Loss: 10246.5659, Val Loss: 14171.6377\n", + "Epoch 113, Train Loss: 9322.9885, Val Loss: 14279.8384\n", + "Epoch 114, Train Loss: 9674.9945, Val Loss: 14047.5553\n", + "Early stopping triggered.\n", + "\n", + "--- Training model for category: Housing Instability ---\n", + "Epoch 1, Train Loss: 143557.0650, Val Loss: 107850.8840\n", + "Epoch 2, Train Loss: 45892.0534, Val Loss: 7128.2630\n", + "Epoch 3, Train Loss: 2566.8487, Val Loss: 1534.3427\n", + "Epoch 4, Train Loss: 1177.9995, Val Loss: 905.4580\n", + "Epoch 5, Train Loss: 702.6582, Val Loss: 569.9261\n", + "Epoch 6, Train Loss: 478.7723, Val Loss: 402.1216\n", + "Epoch 7, Train Loss: 329.3213, Val Loss: 267.6164\n", + "Epoch 8, Train Loss: 219.9159, Val Loss: 179.6118\n", + "Epoch 9, Train Loss: 150.7863, Val Loss: 125.4125\n", + "Epoch 10, Train Loss: 107.9395, Val Loss: 93.4055\n", + "Epoch 11, Train Loss: 80.6724, Val Loss: 74.5366\n", + "Epoch 12, Train Loss: 62.7825, Val Loss: 56.1284\n", + "Epoch 13, Train Loss: 48.4492, Val Loss: 44.9136\n", + "Epoch 14, Train Loss: 39.7915, Val Loss: 37.2567\n", + "Epoch 15, Train Loss: 33.5178, Val Loss: 29.8540\n", + "Epoch 16, Train Loss: 26.5864, Val Loss: 24.2784\n", + "Epoch 17, Train Loss: 22.5519, Val Loss: 21.3345\n", + "Epoch 18, Train Loss: 19.0322, Val Loss: 17.7794\n", + "Epoch 19, Train Loss: 16.3842, Val Loss: 15.7674\n", + "Epoch 20, Train Loss: 14.7622, Val Loss: 14.8619\n", + "Epoch 21, Train Loss: 13.2649, Val Loss: 13.1823\n", + "Epoch 22, Train Loss: 11.8228, Val Loss: 11.3277\n", + "Epoch 23, Train Loss: 10.8956, Val Loss: 13.0687\n", + "Epoch 24, Train Loss: 10.3426, Val Loss: 9.5762\n", + "Epoch 25, Train Loss: 9.3131, Val Loss: 9.3122\n", + "Epoch 26, Train Loss: 9.0055, Val Loss: 9.0875\n", + "Epoch 27, Train Loss: 8.3393, Val Loss: 7.4599\n", + "Epoch 28, Train Loss: 7.8885, Val Loss: 7.7852\n", + "Epoch 29, Train Loss: 7.4894, Val Loss: 7.0909\n", + "Epoch 30, Train Loss: 6.8601, Val Loss: 6.3256\n", + "Epoch 31, Train Loss: 6.4921, Val Loss: 5.8896\n", + "Epoch 32, Train Loss: 6.3652, Val Loss: 6.0860\n", + "Epoch 33, Train Loss: 6.0065, Val Loss: 5.4886\n", + "Epoch 34, Train Loss: 5.5790, Val Loss: 4.8293\n", + "Epoch 35, Train Loss: 5.5350, Val Loss: 4.8309\n", + "Epoch 36, Train Loss: 4.8794, Val Loss: 6.5032\n", + "Epoch 37, Train Loss: 4.7023, Val Loss: 4.1753\n", + "Epoch 38, Train Loss: 4.3762, Val Loss: 4.2109\n", + "Epoch 39, Train Loss: 3.9443, Val Loss: 4.3919\n", + "Epoch 40, Train Loss: 3.9848, Val Loss: 4.3005\n", + "Epoch 41, Train Loss: 3.6016, Val Loss: 3.4307\n", + "Epoch 42, Train Loss: 3.8329, Val Loss: 2.9649\n", + "Epoch 43, Train Loss: 3.3969, Val Loss: 3.5206\n", + "Epoch 44, Train Loss: 3.2829, Val Loss: 3.0102\n", + "Epoch 45, Train Loss: 3.0999, Val Loss: 5.1480\n", + "Epoch 46, Train Loss: 3.2449, Val Loss: 2.6486\n", + "Epoch 47, Train Loss: 3.0706, Val Loss: 3.0023\n", + "Epoch 48, Train Loss: 3.0942, Val Loss: 2.5568\n", + "Epoch 49, Train Loss: 3.0060, Val Loss: 3.0398\n", + "Epoch 50, Train Loss: 2.8518, Val Loss: 2.4766\n", + "Epoch 51, Train Loss: 2.5848, Val Loss: 2.9792\n", + "Epoch 52, Train Loss: 2.7695, Val Loss: 3.7517\n", + "Epoch 53, Train Loss: 2.5737, Val Loss: 2.7642\n", + "Epoch 54, Train Loss: 2.5194, Val Loss: 2.5178\n", + "Epoch 55, Train Loss: 2.3663, Val Loss: 2.0452\n", + "Epoch 56, Train Loss: 2.4005, Val Loss: 2.9440\n", + "Epoch 57, Train Loss: 2.3115, Val Loss: 2.5714\n", + "Epoch 58, Train Loss: 2.5546, Val Loss: 2.8754\n", + "Epoch 59, Train Loss: 2.5064, Val Loss: 1.9850\n", + "Epoch 60, Train Loss: 2.2290, Val Loss: 2.5534\n", + "Epoch 61, Train Loss: 2.0750, Val Loss: 2.2505\n", + "Epoch 62, Train Loss: 2.3509, Val Loss: 2.4256\n", + "Epoch 63, Train Loss: 2.1890, Val Loss: 2.5311\n", + "Epoch 64, Train Loss: 2.0265, Val Loss: 2.3267\n", + "Early stopping triggered.\n", + "\n", + "--- Training model for category: Poverty & Social Support ---\n", + "Epoch 1, Train Loss: 128.8666, Val Loss: 11.5056\n", + "Epoch 2, Train Loss: 9.7101, Val Loss: 7.9084\n", + "Epoch 3, Train Loss: 5.9738, Val Loss: 4.1289\n", + "Epoch 4, Train Loss: 2.7713, Val Loss: 1.4003\n", + "Epoch 5, Train Loss: 1.0502, Val Loss: 0.8112\n", + "Epoch 6, Train Loss: 0.6722, Val Loss: 0.5357\n", + "Epoch 7, Train Loss: 0.4755, Val Loss: 0.4077\n", + "Epoch 8, Train Loss: 0.3718, Val Loss: 0.3290\n", + "Epoch 9, Train Loss: 0.3036, Val Loss: 0.2764\n", + "Epoch 10, Train Loss: 0.2575, Val Loss: 0.2404\n", + "Epoch 11, Train Loss: 0.2239, Val Loss: 0.2046\n", + "Epoch 12, Train Loss: 0.1965, Val Loss: 0.1841\n", + "Epoch 13, Train Loss: 0.1722, Val Loss: 0.1564\n", + "Epoch 14, Train Loss: 0.1499, Val Loss: 0.1450\n", + "Epoch 15, Train Loss: 0.1322, Val Loss: 0.1239\n", + "Epoch 16, Train Loss: 0.1166, Val Loss: 0.1115\n", + "Epoch 17, Train Loss: 0.1045, Val Loss: 0.1032\n", + "Epoch 18, Train Loss: 0.0943, Val Loss: 0.0961\n", + "Epoch 19, Train Loss: 0.0874, Val Loss: 0.0840\n", + "Epoch 20, Train Loss: 0.0764, Val Loss: 0.0800\n", + "Epoch 21, Train Loss: 0.0712, Val Loss: 0.0739\n", + "Epoch 22, Train Loss: 0.0652, Val Loss: 0.0662\n", + "Epoch 23, Train Loss: 0.0597, Val Loss: 0.0599\n", + "Epoch 24, Train Loss: 0.0564, Val Loss: 0.0591\n", + "Epoch 25, Train Loss: 0.0518, Val Loss: 0.0525\n", + "Epoch 26, Train Loss: 0.0475, Val Loss: 0.0530\n", + "Epoch 27, Train Loss: 0.0449, Val Loss: 0.0553\n", + "Epoch 28, Train Loss: 0.0418, Val Loss: 0.0429\n", + "Epoch 29, Train Loss: 0.0395, Val Loss: 0.0410\n", + "Epoch 30, Train Loss: 0.0362, Val Loss: 0.0367\n", + "Epoch 31, Train Loss: 0.0353, Val Loss: 0.0462\n", + "Epoch 32, Train Loss: 0.0332, Val Loss: 0.0321\n", + "Epoch 33, Train Loss: 0.0314, Val Loss: 0.0330\n", + "Epoch 34, Train Loss: 0.0295, Val Loss: 0.0281\n", + "Epoch 35, Train Loss: 0.0282, Val Loss: 0.0380\n", + "Epoch 36, Train Loss: 0.0267, Val Loss: 0.0264\n", + "Epoch 37, Train Loss: 0.0252, Val Loss: 0.0245\n", + "Epoch 38, Train Loss: 0.0235, Val Loss: 0.0242\n", + "Epoch 39, Train Loss: 0.0231, Val Loss: 0.0278\n", + "Epoch 40, Train Loss: 0.0217, Val Loss: 0.0211\n", + "Epoch 41, Train Loss: 0.0216, Val Loss: 0.0212\n", + "Epoch 42, Train Loss: 0.0202, Val Loss: 0.0250\n", + "Epoch 43, Train Loss: 0.0203, Val Loss: 0.0338\n", + "Epoch 44, Train Loss: 0.0202, Val Loss: 0.0203\n", + "Epoch 45, Train Loss: 0.0182, Val Loss: 0.0206\n", + "Epoch 46, Train Loss: 0.0175, Val Loss: 0.0201\n", + "Epoch 47, Train Loss: 0.0170, Val Loss: 0.0190\n", + "Epoch 48, Train Loss: 0.0168, Val Loss: 0.0185\n", + "Epoch 49, Train Loss: 0.0158, Val Loss: 0.0184\n", + "Epoch 50, Train Loss: 0.0159, Val Loss: 0.0202\n", + "Epoch 51, Train Loss: 0.0148, Val Loss: 0.0156\n", + "Epoch 52, Train Loss: 0.0140, Val Loss: 0.0140\n", + "Epoch 53, Train Loss: 0.0138, Val Loss: 0.0220\n", + "Epoch 54, Train Loss: 0.0144, Val Loss: 0.0162\n", + "Epoch 55, Train Loss: 0.0130, Val Loss: 0.0150\n", + "Epoch 56, Train Loss: 0.0134, Val Loss: 0.0247\n", + "Epoch 57, Train Loss: 0.0125, Val Loss: 0.0156\n", + "Early stopping triggered.\n", + "\n", + "--- Training model for category: Language & Education Barriers ---\n", + "Epoch 1, Train Loss: 128.0712, Val Loss: 16.2298\n", + "Epoch 2, Train Loss: 13.2961, Val Loss: 9.9187\n", + "Epoch 3, Train Loss: 8.6535, Val Loss: 7.3960\n", + "Epoch 4, Train Loss: 6.6924, Val Loss: 5.7370\n", + "Epoch 5, Train Loss: 5.2679, Val Loss: 4.3637\n", + "Epoch 6, Train Loss: 3.7787, Val Loss: 3.0497\n", + "Epoch 7, Train Loss: 2.4208, Val Loss: 1.9825\n", + "Epoch 8, Train Loss: 1.4675, Val Loss: 1.5306\n", + "Epoch 9, Train Loss: 0.9347, Val Loss: 0.8340\n", + "Epoch 10, Train Loss: 0.9469, Val Loss: 0.7631\n", + "Epoch 11, Train Loss: 0.7835, Val Loss: 0.5183\n", + "Epoch 12, Train Loss: 0.4889, Val Loss: 0.5043\n", + "Epoch 13, Train Loss: 0.4264, Val Loss: 0.3467\n", + "Epoch 14, Train Loss: 0.3764, Val Loss: 0.3003\n", + "Epoch 15, Train Loss: 0.3911, Val Loss: 0.4330\n", + "Epoch 16, Train Loss: 0.2349, Val Loss: 0.2057\n", + "Epoch 17, Train Loss: 0.1967, Val Loss: 0.1829\n", + "Epoch 18, Train Loss: 0.2124, Val Loss: 0.1263\n", + "Epoch 19, Train Loss: 0.1219, Val Loss: 0.1097\n", + "Epoch 20, Train Loss: 0.0996, Val Loss: 0.0943\n", + "Epoch 21, Train Loss: 0.1642, Val Loss: 0.0767\n", + "Epoch 22, Train Loss: 0.0743, Val Loss: 0.0746\n", + "Epoch 23, Train Loss: 0.0754, Val Loss: 0.0539\n", + "Epoch 24, Train Loss: 0.0541, Val Loss: 0.0536\n", + "Epoch 25, Train Loss: 0.0509, Val Loss: 0.0660\n", + "Epoch 26, Train Loss: 0.0465, Val Loss: 0.0477\n", + "Epoch 27, Train Loss: 0.0426, Val Loss: 0.0479\n", + "Epoch 28, Train Loss: 0.0863, Val Loss: 0.0356\n", + "Epoch 29, Train Loss: 0.0335, Val Loss: 0.0395\n", + "Epoch 30, Train Loss: 0.0327, Val Loss: 0.0298\n", + "Epoch 31, Train Loss: 0.0317, Val Loss: 0.0302\n", + "Epoch 32, Train Loss: 0.4911, Val Loss: 0.1224\n", + "Epoch 33, Train Loss: 0.0579, Val Loss: 0.0359\n", + "Epoch 34, Train Loss: 0.0313, Val Loss: 0.0299\n", + "Epoch 35, Train Loss: 0.0268, Val Loss: 0.0255\n", + "Epoch 36, Train Loss: 0.0270, Val Loss: 0.0267\n", + "Epoch 37, Train Loss: 0.0257, Val Loss: 0.0236\n", + "Epoch 38, Train Loss: 0.0237, Val Loss: 0.0266\n", + "Epoch 39, Train Loss: 0.0243, Val Loss: 0.0242\n", + "Epoch 40, Train Loss: 0.0247, Val Loss: 0.0204\n", + "Epoch 41, Train Loss: 0.0852, Val Loss: 0.0218\n", + "Epoch 42, Train Loss: 0.0268, Val Loss: 0.0169\n", + "Epoch 43, Train Loss: 0.0177, Val Loss: 0.0223\n", + "Epoch 44, Train Loss: 0.2391, Val Loss: 0.1428\n", + "Epoch 45, Train Loss: 0.0961, Val Loss: 0.1295\n", + "Epoch 46, Train Loss: 0.0792, Val Loss: 0.0672\n", + "Epoch 47, Train Loss: 0.0612, Val Loss: 0.0483\n", + "Early stopping triggered.\n", + "\n", + "--- Training model for category: Demographic Pressure ---\n", + "Epoch 1, Train Loss: 57612564.4286, Val Loss: 56455816.4835\n", + "Epoch 2, Train Loss: 52932312.0440, Val Loss: 48646590.4615\n", + "Epoch 3, Train Loss: 43242243.0275, Val Loss: 38141128.0220\n", + "Epoch 4, Train Loss: 32901201.1346, Val Loss: 28074966.9890\n", + "Epoch 5, Train Loss: 23675654.8874, Val Loss: 19934365.7363\n", + "Epoch 6, Train Loss: 16618389.5316, Val Loss: 13911928.3846\n", + "Epoch 7, Train Loss: 11586625.0934, Val Loss: 9697279.4973\n", + "Epoch 8, Train Loss: 8031817.5591, Val Loss: 6751571.3434\n", + "Epoch 9, Train Loss: 5732530.2891, Val Loss: 4959481.3846\n", + "Epoch 10, Train Loss: 4355118.2810, Val Loss: 4063062.8503\n", + "Epoch 11, Train Loss: 3639617.5340, Val Loss: 3340970.8688\n", + "Epoch 12, Train Loss: 2886343.9408, Val Loss: 2649665.0573\n", + "Epoch 13, Train Loss: 2287034.7276, Val Loss: 2108584.3607\n", + "Epoch 14, Train Loss: 1878962.8479, Val Loss: 1800870.7438\n", + "Epoch 15, Train Loss: 1659223.8601, Val Loss: 1636202.3386\n", + "Epoch 16, Train Loss: 1351849.1678, Val Loss: 1173230.1459\n", + "Epoch 17, Train Loss: 982083.6468, Val Loss: 888226.8089\n", + "Epoch 18, Train Loss: 757576.5940, Val Loss: 698698.8923\n", + "Epoch 19, Train Loss: 601498.8336, Val Loss: 568148.8031\n", + "Epoch 20, Train Loss: 496767.0109, Val Loss: 471053.0088\n", + "Epoch 21, Train Loss: 411307.0149, Val Loss: 400929.2890\n", + "Epoch 22, Train Loss: 354213.7542, Val Loss: 349205.0617\n", + "Epoch 23, Train Loss: 309658.7489, Val Loss: 306411.4558\n", + "Epoch 24, Train Loss: 271392.2361, Val Loss: 269046.7344\n", + "Epoch 25, Train Loss: 237001.4085, Val Loss: 235725.0929\n", + "Epoch 26, Train Loss: 206971.2908, Val Loss: 205899.7047\n", + "Epoch 27, Train Loss: 179555.9603, Val Loss: 178857.5213\n", + "Epoch 28, Train Loss: 153032.0282, Val Loss: 151220.6245\n", + "Epoch 29, Train Loss: 129711.0011, Val Loss: 129269.5516\n", + "Epoch 30, Train Loss: 110413.6651, Val Loss: 109595.1352\n", + "Epoch 31, Train Loss: 92599.3087, Val Loss: 92521.6980\n", + "Epoch 32, Train Loss: 77129.5907, Val Loss: 76631.7038\n", + "Epoch 33, Train Loss: 63439.8473, Val Loss: 63028.3525\n", + "Epoch 34, Train Loss: 51627.7247, Val Loss: 51679.0046\n", + "Epoch 35, Train Loss: 41634.3880, Val Loss: 41545.9836\n", + "Epoch 36, Train Loss: 32907.2025, Val Loss: 32654.3227\n", + "Epoch 37, Train Loss: 25105.9287, Val Loss: 25627.0090\n", + "Epoch 38, Train Loss: 19004.4050, Val Loss: 19716.0461\n", + "Epoch 39, Train Loss: 14194.9284, Val Loss: 15366.5763\n", + "Epoch 40, Train Loss: 10749.3681, Val Loss: 12381.3011\n", + "Epoch 41, Train Loss: 8386.4903, Val Loss: 9997.9895\n", + "Epoch 42, Train Loss: 6741.4735, Val Loss: 8418.1993\n", + "Epoch 43, Train Loss: 5734.0479, Val Loss: 7461.6353\n", + "Epoch 44, Train Loss: 5113.9256, Val Loss: 6902.4149\n", + "Epoch 45, Train Loss: 4684.4598, Val Loss: 6448.1485\n", + "Epoch 46, Train Loss: 4340.6734, Val Loss: 6161.6756\n", + "Epoch 47, Train Loss: 4084.7782, Val Loss: 5987.3554\n", + "Epoch 48, Train Loss: 3888.9111, Val Loss: 5659.0779\n", + "Epoch 49, Train Loss: 3683.4288, Val Loss: 5458.4245\n", + "Epoch 50, Train Loss: 3515.9349, Val Loss: 5206.9536\n", + "Epoch 51, Train Loss: 3370.9480, Val Loss: 4977.0209\n", + "Epoch 52, Train Loss: 3233.5159, Val Loss: 4872.9692\n", + "Epoch 53, Train Loss: 3080.0960, Val Loss: 4827.9777\n", + "Epoch 54, Train Loss: 2960.2057, Val Loss: 4599.2578\n", + "Epoch 55, Train Loss: 2824.1045, Val Loss: 4284.8748\n", + "Epoch 56, Train Loss: 2704.7530, Val Loss: 4350.2683\n", + "Epoch 57, Train Loss: 2629.9304, Val Loss: 4106.6543\n", + "Epoch 58, Train Loss: 2502.6222, Val Loss: 3847.5542\n", + "Epoch 59, Train Loss: 2400.6853, Val Loss: 3687.9193\n", + "Epoch 60, Train Loss: 2320.8459, Val Loss: 3537.2060\n", + "Epoch 61, Train Loss: 2254.8282, Val Loss: 3413.8111\n", + "Epoch 62, Train Loss: 2158.5018, Val Loss: 3238.2039\n", + "Epoch 63, Train Loss: 2058.2302, Val Loss: 3237.6546\n", + "Epoch 64, Train Loss: 2003.0816, Val Loss: 3164.6924\n", + "Epoch 65, Train Loss: 1920.8223, Val Loss: 2884.2746\n", + "Epoch 66, Train Loss: 1846.9310, Val Loss: 2749.3742\n", + "Epoch 67, Train Loss: 1781.6076, Val Loss: 2736.1019\n", + "Epoch 68, Train Loss: 1738.4850, Val Loss: 3037.2553\n", + "Epoch 69, Train Loss: 1644.7769, Val Loss: 2585.2468\n", + "Epoch 70, Train Loss: 1574.8474, Val Loss: 2395.8072\n", + "Epoch 71, Train Loss: 1523.0167, Val Loss: 2291.2141\n", + "Epoch 72, Train Loss: 1449.1054, Val Loss: 2204.5122\n", + "Epoch 73, Train Loss: 1383.5897, Val Loss: 2130.0584\n", + "Epoch 74, Train Loss: 1353.5257, Val Loss: 2356.9282\n", + "Epoch 75, Train Loss: 1336.0079, Val Loss: 1986.1655\n", + "Epoch 76, Train Loss: 1282.0758, Val Loss: 1921.4717\n", + "Epoch 77, Train Loss: 1195.0078, Val Loss: 1815.6774\n", + "Epoch 78, Train Loss: 1140.2250, Val Loss: 1683.6042\n", + "Epoch 79, Train Loss: 1103.9741, Val Loss: 1540.8829\n", + "Epoch 80, Train Loss: 1051.5237, Val Loss: 1450.9171\n", + "Epoch 81, Train Loss: 991.7722, Val Loss: 1448.3858\n", + "Epoch 82, Train Loss: 963.9840, Val Loss: 1527.6219\n", + "Epoch 83, Train Loss: 955.2614, Val Loss: 1274.1171\n", + "Epoch 84, Train Loss: 863.6226, Val Loss: 1276.9654\n", + "Epoch 85, Train Loss: 844.8148, Val Loss: 1184.5464\n", + "Epoch 86, Train Loss: 794.6131, Val Loss: 1330.9076\n", + "Epoch 87, Train Loss: 813.5953, Val Loss: 1093.1625\n", + "Epoch 88, Train Loss: 740.3027, Val Loss: 1087.4534\n", + "Epoch 89, Train Loss: 713.6647, Val Loss: 1086.4505\n", + "Epoch 90, Train Loss: 691.7297, Val Loss: 952.7065\n", + "Epoch 91, Train Loss: 682.9983, Val Loss: 909.4152\n", + "Epoch 92, Train Loss: 661.9333, Val Loss: 868.9511\n", + "Epoch 93, Train Loss: 630.9777, Val Loss: 854.3921\n", + "Epoch 94, Train Loss: 612.2932, Val Loss: 796.8766\n", + "Epoch 95, Train Loss: 562.5565, Val Loss: 766.2482\n", + "Epoch 96, Train Loss: 572.2731, Val Loss: 748.3772\n", + "Epoch 97, Train Loss: 543.2650, Val Loss: 764.6274\n", + "Epoch 98, Train Loss: 538.9502, Val Loss: 740.7852\n", + "Epoch 99, Train Loss: 506.2176, Val Loss: 727.4621\n", + "Epoch 100, Train Loss: 496.3571, Val Loss: 670.8504\n", + "Epoch 101, Train Loss: 493.4370, Val Loss: 567.9471\n", + "Epoch 102, Train Loss: 445.1963, Val Loss: 542.4416\n", + "Epoch 103, Train Loss: 427.6020, Val Loss: 564.4179\n", + "Epoch 104, Train Loss: 430.0542, Val Loss: 499.8023\n", + "Epoch 105, Train Loss: 396.1497, Val Loss: 496.5119\n", + "Epoch 106, Train Loss: 384.1219, Val Loss: 467.1062\n", + "Epoch 107, Train Loss: 361.7598, Val Loss: 512.4651\n", + "Epoch 108, Train Loss: 332.4798, Val Loss: 431.2924\n", + "Epoch 109, Train Loss: 355.1988, Val Loss: 404.8034\n", + "Epoch 110, Train Loss: 346.3740, Val Loss: 438.2939\n", + "Epoch 111, Train Loss: 314.5095, Val Loss: 434.0818\n", + "Epoch 112, Train Loss: 311.4701, Val Loss: 499.9240\n", + "Epoch 113, Train Loss: 311.2193, Val Loss: 357.0708\n", + "Epoch 114, Train Loss: 274.8490, Val Loss: 466.6986\n", + "Epoch 115, Train Loss: 287.4069, Val Loss: 311.9487\n", + "Epoch 116, Train Loss: 264.9999, Val Loss: 312.5348\n", + "Epoch 117, Train Loss: 240.5169, Val Loss: 290.6689\n", + "Epoch 118, Train Loss: 253.0958, Val Loss: 291.4703\n", + "Epoch 119, Train Loss: 257.3023, Val Loss: 366.8210\n", + "Epoch 120, Train Loss: 235.9916, Val Loss: 304.5913\n", + "Epoch 121, Train Loss: 225.7221, Val Loss: 365.7920\n", + "Epoch 122, Train Loss: 252.1281, Val Loss: 249.8213\n", + "Epoch 123, Train Loss: 222.9309, Val Loss: 447.6818\n", + "Epoch 124, Train Loss: 236.6203, Val Loss: 220.5861\n", + "Epoch 125, Train Loss: 200.1317, Val Loss: 240.1021\n", + "Epoch 126, Train Loss: 194.5182, Val Loss: 219.3600\n", + "Epoch 127, Train Loss: 208.3659, Val Loss: 204.8435\n", + "Epoch 128, Train Loss: 203.3117, Val Loss: 254.9227\n", + "Epoch 129, Train Loss: 187.5914, Val Loss: 220.3818\n", + "Epoch 130, Train Loss: 184.3902, Val Loss: 243.9905\n", + "Epoch 131, Train Loss: 182.1437, Val Loss: 232.4768\n", + "Epoch 132, Train Loss: 187.3356, Val Loss: 210.0619\n", + "Early stopping triggered.\n" + ] + } + ], + "source": [ + "from torch.utils.data import Dataset, DataLoader\n", + "\n", + "# Define target categories\n", + "target_categories = {\n", + " \"Income and Employment Stress\": [\n", + " \"ACS_MEDIAN_HH_INC_ZC\", \"ACS_PCT_INC50_ZC\",\n", + " \"ACS_PCT_UNEMPLOY_ZC\", \"ACS_PER_CAPITA_INC_ZC\",\n", + " \"ACS_GINI_INDEX_ZC\"\n", + " ],\n", + " \"Housing Instability\": [\n", + " \"ACS_PCT_RENTER_HU_COST_50PCT_ZC\", \"ACS_PCT_VACANT_HU_ZC\",\n", + " \"ACS_MEDIAN_RENT_ZC\", \"ACS_PCT_OWNER_HU_COST_30PCT_ZC\"\n", + " ],\n", + " \"Poverty & Social Support\": [\n", + " \"ACS_PCT_HH_FOOD_STMP_ZC\", \"ACS_PCT_HH_PUB_ASSIST_ZC\",\n", + " \"ACS_PCT_NO_WORK_NO_SCHL_16_19_ZC\", \"ACS_PCT_CHILD_1FAM_ZC\",\n", + " \"ACS_PCT_GRANDP_RESPS_NO_P_ZC\"\n", + " ],\n", + " \"Language & Education Barriers\": [\n", + " \"ACS_PCT_ENGL_NOT_WELL_ZC\", \"ACS_PCT_HH_LIMIT_ENGLISH_ZC\",\n", + " \"ACS_PCT_LT_HS_ZC\", \"ACS_PCT_HS_GRADUATE_ZC\"\n", + " ],\n", + " \"Demographic Pressure\": [\n", + " \"ACS_PCT_AGE_ABOVE65_ZC\", \"ACS_TOT_POP_WT_ZC\", \"CEN_POPDENSITY_ZC\"\n", + " ]\n", + "}\n", + "\n", + "class SocioHealthDataset(Dataset):\n", + " def __init__(self, X, y):\n", + " self.X = torch.tensor(X.values, dtype=torch.float32)\n", + " self.y = torch.tensor(y.values, dtype=torch.float32)\n", + "\n", + " def __len__(self):\n", + " return len(self.X)\n", + "\n", + " def __getitem__(self, idx):\n", + " return self.X[idx], self.y[idx]\n", + "\n", + "class SocioHealthModel(nn.Module):\n", + " def __init__(self, input_size, output_size):\n", + " super(SocioHealthModel, self).__init__()\n", + " self.lstm = nn.LSTM(input_size=input_size, hidden_size=64, batch_first=True)\n", + " self.fc1 = nn.Linear(64, 32)\n", + " self.relu = nn.ReLU()\n", + " self.fc2 = nn.Linear(32, output_size)\n", + "\n", + " def forward(self, x):\n", + " x = x.unsqueeze(1) # Add sequence dimension\n", + " lstm_out, _ = self.lstm(x)\n", + " out = self.fc1(lstm_out[:, -1, :])\n", + " out = self.relu(out)\n", + " out = self.fc2(out)\n", + " return out\n", + "\n", + "def train_model(model, train_loader, val_loader, criterion, optimizer, log_dir, epochs=500, device='cpu', patience=5):\n", + " model.to(device)\n", + " writer = SummaryWriter(log_dir=log_dir)\n", + " best_loss = float('inf')\n", + " early_stop_counter = 0\n", + "\n", + " for epoch in range(epochs):\n", + " model.train()\n", + " train_loss = 0.0\n", + " for features, targets in train_loader:\n", + " features, targets = features.to(device), targets.to(device)\n", + " optimizer.zero_grad()\n", + " outputs = model(features)\n", + " loss = criterion(outputs, targets)\n", + " loss.backward()\n", + " optimizer.step()\n", + " train_loss += loss.item()\n", + "\n", + " model.eval()\n", + " val_loss = 0.0\n", + " with torch.no_grad():\n", + " for features, targets in val_loader:\n", + " features, targets = features.to(device), targets.to(device)\n", + " outputs = model(features)\n", + " loss = criterion(outputs, targets)\n", + " val_loss += loss.item()\n", + "\n", + " avg_train_loss = train_loss / len(train_loader)\n", + " avg_val_loss = val_loss / len(val_loader)\n", + "\n", + " writer.add_scalars('Loss', {'Train': avg_train_loss, 'Validation': avg_val_loss}, epoch)\n", + "\n", + " print(f\"Epoch {epoch+1}, Train Loss: {avg_train_loss:.4f}, Val Loss: {avg_val_loss:.4f}\")\n", + "\n", + " if avg_val_loss < best_loss:\n", + " best_loss = avg_val_loss\n", + " early_stop_counter = 0\n", + " else:\n", + " early_stop_counter += 1\n", + " if early_stop_counter >= patience:\n", + " print(\"Early stopping triggered.\")\n", + " torch.save(model.state_dict(), os.path.join(log_dir, 'best_model.pth'))\n", + " torch.save(model.state_dict(), os.path.join(log_dir, 'best_model.h5'))\n", + " break\n", + "\n", + " writer.close()\n", + "\n", + "def select_features(X, y, top_k=30):\n", + " corr_scores = X.corrwith(y.mean(axis=1)).abs()\n", + " mi_scores = mutual_info_regression(X, y.mean(axis=1))\n", + " total_score = corr_scores + mi_scores\n", + " selected_features = total_score.sort_values(ascending=False).head(top_k).index.tolist()\n", + " return selected_features\n", + "\n", + "for category, targets in target_categories.items():\n", + " print(f\"\\n--- Training model for category: {category} ---\")\n", + " X = data.drop(columns=sum(target_categories.values(), []))\n", + " y = data[targets].dropna()\n", + " X = X.loc[y.index]\n", + "\n", + " selected_features = select_features(X, y)\n", + " X_selected = X[selected_features]\n", + "\n", + " scaler = StandardScaler()\n", + " X_scaled = pd.DataFrame(scaler.fit_transform(X_selected), columns=selected_features)\n", + "\n", + " X_train, X_val, y_train, y_val = train_test_split(X_scaled, y, test_size=0.2, random_state=42)\n", + "\n", + " train_dataset = SocioHealthDataset(X_train, y_train)\n", + " val_dataset = SocioHealthDataset(X_val, y_val)\n", + " train_loader = DataLoader(train_dataset, batch_size=64, shuffle=True)\n", + " val_loader = DataLoader(val_dataset, batch_size=64, shuffle=False)\n", + "\n", + " model = SocioHealthModel(input_size=X_train.shape[1], output_size=y_train.shape[1])\n", + " criterion = nn.MSELoss()\n", + " optimizer = torch.optim.Adam(model.parameters(), lr=0.001)\n", + "\n", + " log_dir = f\"runs/{category.replace(' ', '_')}\"\n", + " os.makedirs(log_dir, exist_ok=True)\n", + "\n", + " train_model(model, train_loader, val_loader, criterion, optimizer, log_dir=log_dir, device='cuda' if torch.cuda.is_available() else 'cpu')" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "00fa458b", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "env", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.9" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/README.md b/README.md index 2f6fda4..e41dde1 100644 --- a/README.md +++ b/README.md @@ -1,89 +1,89 @@ -# 🚀 HackToFuture 3.0 Repository Setup Guide -#### To track your progress and collaborate effectively, every team must fork the official repository and follow the steps below. -
- -# 🔱 Fork the Repository - #### Go to the GitHub page https://github.com/HackToFuture/HTF-XNN
- #### Click on the "Fork" button in the upper-right corner of the page. - #### Assign the repository name as "HTF - **". - - fork image - - - ``` - Example : - -> A09 - Repository Name : HTF-A09 -``` - -# 📥 Clone Your Forked Repository - #### Go to your forked repository on GitHub. - #### Click the green "Code" button, then click the clipboard icon to copy the URL. - - clone image - - #### Open your terminal and run the following git clone command to copy the repository to your local machine. - #### Replace *repository-url* with the URL of your forked repository. - ``` - git clone -``` - - -# 🛠️ Start working on your project -#### Begin building your solution! Collaborate with your teammates and push changes regularly. - -# 📝 Commit Your Changes -#### Track and save your progress using Git: -#### Check the status of your changes - ``` - git status - ``` - - - #### Use the git add command to stage the changes you want to commit - ``` - git add . - ``` - - #### Commit with a meaningful message - #### *Option 1* : Simple Commit Format (Beginner Friendly) - #### Use this if you're new to Git - ``` - git commit -m "Your descriptive commit message" - ``` -#### *Option 2* : Conventional Commits (Recommended) -#### Follow this format for more structured, professional commit history -``` -git commit -m "(): " -``` -| Type | Purpose | -|----------|----------| -| feat | for a new feature for the user, not a new feature for build script. Such commit will trigger a release bumping a MINOR version | -| fix | for a bug fix for the user, not a fix to a build script. Such commit will trigger a release bumping a PATCH version | -| perf | for performance improvements. Such commit will trigger a release bumping a PATCH version | -| docs | for changes to the documentation | -| test | for adding missing tests, refactoring tests; no production code change | -| style | for formatting changes, missing semicolons, etc | -| refactor | for refactoring production code, e.g. renaming a variable | -| build | for updating build configuration, development tools or other changes irrelevant to the user| - -#### Scope: Area of change (e.g., api, ui, auth) -#### Subject: One-line summary in present tense, no period at the end - -``` -Example: git commit -m "fix(button): fix submit button not working" -``` - -# 🚀 Push Your Changes - #### Send your local commits to GitHub: - ``` - git push origin - ``` -# 🧠 Tips -#### *Commit often* : Small, frequent commits help track progress and fix bugs easily. -#### *Write clear messages* : Describe what you did in each commit. -#### *Collaborate* : Make sure everyone in your team contributes. - ---- - -**For any issues or doubts, reach out to the organizing team.** *Happy hacking!* 💻✨ +# 🚀 HackToFuture 3.0 Repository Setup Guide +#### To track your progress and collaborate effectively, every team must fork the official repository and follow the steps below. +
+ +# 🔱 Fork the Repository + #### Go to the GitHub page https://github.com/HackToFuture/HTF-XNN
+ #### Click on the "Fork" button in the upper-right corner of the page. + #### Assign the repository name as "HTF - **". + + fork image + + + ``` + Example : + -> A09 + Repository Name : HTF-A09 +``` + +# 📥 Clone Your Forked Repository + #### Go to your forked repository on GitHub. + #### Click the green "Code" button, then click the clipboard icon to copy the URL. + + clone image + + #### Open your terminal and run the following git clone command to copy the repository to your local machine. + #### Replace *repository-url* with the URL of your forked repository. + ``` + git clone +``` + + +# 🛠️ Start working on your project +#### Begin building your solution! Collaborate with your teammates and push changes regularly. + +# 📝 Commit Your Changes +#### Track and save your progress using Git: +#### Check the status of your changes + ``` + git status + ``` + + + #### Use the git add command to stage the changes you want to commit + ``` + git add . + ``` + + #### Commit with a meaningful message + #### *Option 1* : Simple Commit Format (Beginner Friendly) + #### Use this if you're new to Git + ``` + git commit -m "Your descriptive commit message" + ``` +#### *Option 2* : Conventional Commits (Recommended) +#### Follow this format for more structured, professional commit history +``` +git commit -m "(): " +``` +| Type | Purpose | +|----------|----------| +| feat | for a new feature for the user, not a new feature for build script. Such commit will trigger a release bumping a MINOR version | +| fix | for a bug fix for the user, not a fix to a build script. Such commit will trigger a release bumping a PATCH version | +| perf | for performance improvements. Such commit will trigger a release bumping a PATCH version | +| docs | for changes to the documentation | +| test | for adding missing tests, refactoring tests; no production code change | +| style | for formatting changes, missing semicolons, etc | +| refactor | for refactoring production code, e.g. renaming a variable | +| build | for updating build configuration, development tools or other changes irrelevant to the user| + +#### Scope: Area of change (e.g., api, ui, auth) +#### Subject: One-line summary in present tense, no period at the end + +``` +Example: git commit -m "fix(button): fix submit button not working" +``` + +# 🚀 Push Your Changes + #### Send your local commits to GitHub: + ``` + git push origin + ``` +# 🧠 Tips +#### *Commit often* : Small, frequent commits help track progress and fix bugs easily. +#### *Write clear messages* : Describe what you did in each commit. +#### *Collaborate* : Make sure everyone in your team contributes. + +--- + +**For any issues or doubts, reach out to the organizing team.** *Happy hacking!* 💻✨ diff --git a/data_process.ipynb b/data_process.ipynb new file mode 100644 index 0000000..82b679a --- /dev/null +++ b/data_process.ipynb @@ -0,0 +1,7498 @@ +{ + "cells": [ + { + "cell_type": "code", + "execution_count": 2, + "id": "54526241", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "import numpy as np\n", + "import seaborn as sns\n", + "\n", + "import matplotlib.pyplot as plt" + ] + }, + { + "cell_type": "code", + "execution_count": 3, + "id": "df444935", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
YEARCOUNTYFIPSSTATEFIPSSTATECOUNTYREGIONTERRITORYACS_TOT_POP_WTACS_TOT_POP_US_ABOVE1ACS_TOT_POP_ABOVE5...POS_TOT_HOSP_AMBULANCEPOS_HOSP_AMBULANCE_RATEPOS_TOT_HOSP_CHEMOPOS_HOSP_CHEMO_RATEPOS_TOT_HOSP_EDPOS_HOSP_ED_RATEPOS_PCT_HOSP_FOR_PROFITPOS_PCT_HOSP_NON_PROFITPOS_PCT_HOSP_GOVCEN_AIAN_NH_IND
0202010011AlabamaAutauga CountySouth055639.054929.052404.0...0.00.000.00.01.00.0252.6336.8410.530.0
1202010031AlabamaBaldwin CountySouth0218289.0216518.0206329.0...0.00.001.00.04.00.0263.4936.510.000.0
2202010051AlabamaBarbour CountySouth025026.024792.023694.0...0.00.000.00.01.00.0468.7525.006.250.0
3202010071AlabamaBibb CountySouth022374.022073.021121.0...1.00.040.00.01.00.0446.1530.7723.080.0
4202010091AlabamaBlount CountySouth057755.057164.054250.0...0.00.000.00.01.00.0260.0040.000.000.0
..................................................................
322420207215172Puerto RicoYabucoa MunicipioNaN132867.0NaN31669.0...0.00.000.00.00.00.00100.000.000.000.0
322520207215372Puerto RicoYauco MunicipioNaN134501.0NaN33194.0...0.00.000.00.01.00.0366.6733.330.000.0
322620207801078US Virgin IslandsSt. CroixNaN1NaNNaNNaN...0.00.000.00.01.00.0057.1442.860.000.0
322720207802078US Virgin IslandsSt. John IslandNaN1NaNNaNNaN...0.00.000.00.00.00.000.000.000.000.0
322820207803078US Virgin IslandsSt. Thomas IslandNaN1NaNNaNNaN...0.00.001.00.01.00.0038.4638.4623.080.0
\n", + "

3229 rows × 682 columns

\n", + "
" + ], + "text/plain": [ + " YEAR COUNTYFIPS STATEFIPS STATE COUNTY \\\n", + "0 2020 1001 1 Alabama Autauga County \n", + "1 2020 1003 1 Alabama Baldwin County \n", + "2 2020 1005 1 Alabama Barbour County \n", + "3 2020 1007 1 Alabama Bibb County \n", + "4 2020 1009 1 Alabama Blount County \n", + "... ... ... ... ... ... \n", + "3224 2020 72151 72 Puerto Rico Yabucoa Municipio \n", + "3225 2020 72153 72 Puerto Rico Yauco Municipio \n", + "3226 2020 78010 78 US Virgin Islands St. Croix \n", + "3227 2020 78020 78 US Virgin Islands St. John Island \n", + "3228 2020 78030 78 US Virgin Islands St. Thomas Island \n", + "\n", + " REGION TERRITORY ACS_TOT_POP_WT ACS_TOT_POP_US_ABOVE1 \\\n", + "0 South 0 55639.0 54929.0 \n", + "1 South 0 218289.0 216518.0 \n", + "2 South 0 25026.0 24792.0 \n", + "3 South 0 22374.0 22073.0 \n", + "4 South 0 57755.0 57164.0 \n", + "... ... ... ... ... \n", + "3224 NaN 1 32867.0 NaN \n", + "3225 NaN 1 34501.0 NaN \n", + "3226 NaN 1 NaN NaN \n", + "3227 NaN 1 NaN NaN \n", + "3228 NaN 1 NaN NaN \n", + "\n", + " ACS_TOT_POP_ABOVE5 ... POS_TOT_HOSP_AMBULANCE \\\n", + "0 52404.0 ... 0.0 \n", + "1 206329.0 ... 0.0 \n", + "2 23694.0 ... 0.0 \n", + "3 21121.0 ... 1.0 \n", + "4 54250.0 ... 0.0 \n", + "... ... ... ... \n", + "3224 31669.0 ... 0.0 \n", + "3225 33194.0 ... 0.0 \n", + "3226 NaN ... 0.0 \n", + "3227 NaN ... 0.0 \n", + "3228 NaN ... 0.0 \n", + "\n", + " POS_HOSP_AMBULANCE_RATE POS_TOT_HOSP_CHEMO POS_HOSP_CHEMO_RATE \\\n", + "0 0.00 0.0 0.0 \n", + "1 0.00 1.0 0.0 \n", + "2 0.00 0.0 0.0 \n", + "3 0.04 0.0 0.0 \n", + "4 0.00 0.0 0.0 \n", + "... ... ... ... \n", + "3224 0.00 0.0 0.0 \n", + "3225 0.00 0.0 0.0 \n", + "3226 0.00 0.0 0.0 \n", + "3227 0.00 0.0 0.0 \n", + "3228 0.00 1.0 0.0 \n", + "\n", + " POS_TOT_HOSP_ED POS_HOSP_ED_RATE POS_PCT_HOSP_FOR_PROFIT \\\n", + "0 1.0 0.02 52.63 \n", + "1 4.0 0.02 63.49 \n", + "2 1.0 0.04 68.75 \n", + "3 1.0 0.04 46.15 \n", + "4 1.0 0.02 60.00 \n", + "... ... ... ... \n", + "3224 0.0 0.00 100.00 \n", + "3225 1.0 0.03 66.67 \n", + "3226 1.0 0.00 57.14 \n", + "3227 0.0 0.00 0.00 \n", + "3228 1.0 0.00 38.46 \n", + "\n", + " POS_PCT_HOSP_NON_PROFIT POS_PCT_HOSP_GOV CEN_AIAN_NH_IND \n", + "0 36.84 10.53 0.0 \n", + "1 36.51 0.00 0.0 \n", + "2 25.00 6.25 0.0 \n", + "3 30.77 23.08 0.0 \n", + "4 40.00 0.00 0.0 \n", + "... ... ... ... \n", + "3224 0.00 0.00 0.0 \n", + "3225 33.33 0.00 0.0 \n", + "3226 42.86 0.00 0.0 \n", + "3227 0.00 0.00 0.0 \n", + "3228 38.46 23.08 0.0 \n", + "\n", + "[3229 rows x 682 columns]" + ] + }, + "execution_count": 3, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_county = pd.read_excel('D:\\hackToFuture\\data\\COUNTY.xlsx', sheet_name='Data')\n", + "df_zip = pd.read_excel('D:\\hackToFuture\\data\\ZIPCODE.xlsx', sheet_name='Data')\n", + "df_county" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "10c259f1", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
YEARSTATEFIPSSTATECOUNTYREGIONTERRITORYACS_TOT_POP_WTACS_TOT_POP_US_ABOVE1ACS_TOT_POP_ABOVE5ACS_TOT_POP_ABOVE15...POS_TOT_HOSP_AMBULANCEPOS_HOSP_AMBULANCE_RATEPOS_TOT_HOSP_CHEMOPOS_HOSP_CHEMO_RATEPOS_TOT_HOSP_EDPOS_HOSP_ED_RATEPOS_PCT_HOSP_FOR_PROFITPOS_PCT_HOSP_NON_PROFITPOS_PCT_HOSP_GOVCEN_AIAN_NH_IND
020201AlabamaAutauga CountySouth055639.054929.052404.045034.0...0.00.000.00.01.00.0252.6336.8410.530.0
120201AlabamaBaldwin CountySouth0218289.0216518.0206329.0179599.0...0.00.001.00.04.00.0263.4936.510.000.0
220201AlabamaBarbour CountySouth025026.024792.023694.020715.0...0.00.000.00.01.00.0468.7525.006.250.0
320201AlabamaBibb CountySouth022374.022073.021121.018737.0...1.00.040.00.01.00.0446.1530.7723.080.0
420201AlabamaBlount CountySouth057755.057164.054250.046687.0...0.00.000.00.01.00.0260.0040.000.000.0
..................................................................
3224202072Puerto RicoYabucoa MunicipioNaN132867.0NaN31669.028057.0...0.00.000.00.00.00.00100.000.000.000.0
3225202072Puerto RicoYauco MunicipioNaN134501.0NaN33194.029445.0...0.00.000.00.01.00.0366.6733.330.000.0
3226202078US Virgin IslandsSt. CroixNaN1NaNNaNNaNNaN...0.00.000.00.01.00.0057.1442.860.000.0
3227202078US Virgin IslandsSt. John IslandNaN1NaNNaNNaNNaN...0.00.000.00.00.00.000.000.000.000.0
3228202078US Virgin IslandsSt. Thomas IslandNaN1NaNNaNNaNNaN...0.00.001.00.01.00.0038.4638.4623.080.0
\n", + "

3229 rows × 681 columns

\n", + "
" + ], + "text/plain": [ + " YEAR STATEFIPS STATE COUNTY REGION TERRITORY \\\n", + "0 2020 1 Alabama Autauga County South 0 \n", + "1 2020 1 Alabama Baldwin County South 0 \n", + "2 2020 1 Alabama Barbour County South 0 \n", + "3 2020 1 Alabama Bibb County South 0 \n", + "4 2020 1 Alabama Blount County South 0 \n", + "... ... ... ... ... ... ... \n", + "3224 2020 72 Puerto Rico Yabucoa Municipio NaN 1 \n", + "3225 2020 72 Puerto Rico Yauco Municipio NaN 1 \n", + "3226 2020 78 US Virgin Islands St. Croix NaN 1 \n", + "3227 2020 78 US Virgin Islands St. John Island NaN 1 \n", + "3228 2020 78 US Virgin Islands St. Thomas Island NaN 1 \n", + "\n", + " ACS_TOT_POP_WT ACS_TOT_POP_US_ABOVE1 ACS_TOT_POP_ABOVE5 \\\n", + "0 55639.0 54929.0 52404.0 \n", + "1 218289.0 216518.0 206329.0 \n", + "2 25026.0 24792.0 23694.0 \n", + "3 22374.0 22073.0 21121.0 \n", + "4 57755.0 57164.0 54250.0 \n", + "... ... ... ... \n", + "3224 32867.0 NaN 31669.0 \n", + "3225 34501.0 NaN 33194.0 \n", + "3226 NaN NaN NaN \n", + "3227 NaN NaN NaN \n", + "3228 NaN NaN NaN \n", + "\n", + " ACS_TOT_POP_ABOVE15 ... POS_TOT_HOSP_AMBULANCE \\\n", + "0 45034.0 ... 0.0 \n", + "1 179599.0 ... 0.0 \n", + "2 20715.0 ... 0.0 \n", + "3 18737.0 ... 1.0 \n", + "4 46687.0 ... 0.0 \n", + "... ... ... ... \n", + "3224 28057.0 ... 0.0 \n", + "3225 29445.0 ... 0.0 \n", + "3226 NaN ... 0.0 \n", + "3227 NaN ... 0.0 \n", + "3228 NaN ... 0.0 \n", + "\n", + " POS_HOSP_AMBULANCE_RATE POS_TOT_HOSP_CHEMO POS_HOSP_CHEMO_RATE \\\n", + "0 0.00 0.0 0.0 \n", + "1 0.00 1.0 0.0 \n", + "2 0.00 0.0 0.0 \n", + "3 0.04 0.0 0.0 \n", + "4 0.00 0.0 0.0 \n", + "... ... ... ... \n", + "3224 0.00 0.0 0.0 \n", + "3225 0.00 0.0 0.0 \n", + "3226 0.00 0.0 0.0 \n", + "3227 0.00 0.0 0.0 \n", + "3228 0.00 1.0 0.0 \n", + "\n", + " POS_TOT_HOSP_ED POS_HOSP_ED_RATE POS_PCT_HOSP_FOR_PROFIT \\\n", + "0 1.0 0.02 52.63 \n", + "1 4.0 0.02 63.49 \n", + "2 1.0 0.04 68.75 \n", + "3 1.0 0.04 46.15 \n", + "4 1.0 0.02 60.00 \n", + "... ... ... ... \n", + "3224 0.0 0.00 100.00 \n", + "3225 1.0 0.03 66.67 \n", + "3226 1.0 0.00 57.14 \n", + "3227 0.0 0.00 0.00 \n", + "3228 1.0 0.00 38.46 \n", + "\n", + " POS_PCT_HOSP_NON_PROFIT POS_PCT_HOSP_GOV CEN_AIAN_NH_IND \n", + "0 36.84 10.53 0.0 \n", + "1 36.51 0.00 0.0 \n", + "2 25.00 6.25 0.0 \n", + "3 30.77 23.08 0.0 \n", + "4 40.00 0.00 0.0 \n", + "... ... ... ... \n", + "3224 0.00 0.00 0.0 \n", + "3225 33.33 0.00 0.0 \n", + "3226 42.86 0.00 0.0 \n", + "3227 0.00 0.00 0.0 \n", + "3228 38.46 23.08 0.0 \n", + "\n", + "[3229 rows x 681 columns]" + ] + }, + "execution_count": 4, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_county.drop(['COUNTYFIPS'], inplace=True, axis=1)\n", + "df_county" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "df730fea", + "metadata": {}, + "outputs": [], + "source": [] + }, + { + "cell_type": "code", + "execution_count": 6, + "id": "943427d5", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "Index(['YEAR', 'STATEFIPS', 'STATE', 'REGION', 'TERRITORY', 'CEN_AIAN_NH_IND'], dtype='object')" + ] + }, + "execution_count": 6, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# now i want to find the common columns in both dataframes \n", + "common_cols = df_zip.columns.intersection(df_county.columns)\n", + "common_cols" + ] + }, + { + "cell_type": "code", + "execution_count": 7, + "id": "7eff20e7", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "327" + ] + }, + "execution_count": 7, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "len(df_zip.isna().sum())" + ] + }, + { + "cell_type": "code", + "execution_count": 8, + "id": "550a268a", + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:8: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mode()[0], inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:11: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2487479251.py:13: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n" + ] + }, + { + "data": { + "text/plain": [ + "np.int64(0)" + ] + }, + "execution_count": 8, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "missing_columns = df_zip.columns[df_zip.isnull().mean() >= 0.5]\n", + "drop_list = missing_columns.tolist()\n", + "df_zip.drop(columns=drop_list, inplace=True)\n", + "\n", + "# data imputation filling numerical if the data is following a normal distribution put mean else put median and categorical columns with mode\n", + "for col in df_zip.columns:\n", + " if df_zip[col].dtype == 'object':\n", + " df_zip[col].fillna(df_zip[col].mode()[0], inplace=True)\n", + " else:\n", + " if df_zip[col].skew() < 0.5:\n", + " df_zip[col].fillna(df_zip[col].mean(), inplace=True)\n", + " else:\n", + " df_zip[col].fillna(df_zip[col].median(), inplace=True)\n", + "# Check if there are any missing values left\n", + "df_zip.isna().sum().sum()\n" + ] + }, + { + "cell_type": "code", + "execution_count": 9, + "id": "a1529a8a", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "YEAR 0\n", + "STATEFIPS 0\n", + "ZIPCODE 0\n", + "ZCTA 0\n", + "STATE 0\n", + " ..\n", + "POS_DIST_PED_ICU_ZP 0\n", + "POS_DIST_OBSTETRICS_ZP 0\n", + "POS_DIST_CLINIC_ZP 0\n", + "POS_DIST_ALC_ZP 0\n", + "CEN_AIAN_NH_IND 0\n", + "Length: 315, dtype: int64" + ] + }, + "execution_count": 9, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_zip.isna().sum()" + ] + }, + { + "cell_type": "markdown", + "id": "c957b237", + "metadata": {}, + "source": [ + "County" + ] + }, + { + "cell_type": "code", + "execution_count": 15, + "id": "56c408b6", + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "
\n", + "\n", + "\n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + " \n", + "
YEARSTATEFIPSSTATECOUNTYREGIONTERRITORYACS_TOT_POP_WTACS_TOT_POP_US_ABOVE1ACS_TOT_POP_ABOVE5ACS_TOT_POP_ABOVE15...POS_TOT_HOSP_AMBULANCEPOS_HOSP_AMBULANCE_RATEPOS_TOT_HOSP_CHEMOPOS_HOSP_CHEMO_RATEPOS_TOT_HOSP_EDPOS_HOSP_ED_RATEPOS_PCT_HOSP_FOR_PROFITPOS_PCT_HOSP_NON_PROFITPOS_PCT_HOSP_GOVCEN_AIAN_NH_IND
020201AlabamaAutauga CountySouth055639.054929.052404.045034.0...0.00.000.00.01.00.0252.6336.8410.530.0
120201AlabamaBaldwin CountySouth0218289.0216518.0206329.0179599.0...0.00.001.00.04.00.0263.4936.510.000.0
220201AlabamaBarbour CountySouth025026.024792.023694.020715.0...0.00.000.00.01.00.0468.7525.006.250.0
320201AlabamaBibb CountySouth022374.022073.021121.018737.0...1.00.040.00.01.00.0446.1530.7723.080.0
420201AlabamaBlount CountySouth057755.057164.054250.046687.0...0.00.000.00.01.00.0260.0040.000.000.0
..................................................................
3224202072Puerto RicoYabucoa MunicipioSouth132867.025437.031669.028057.0...0.00.000.00.00.00.00100.000.000.000.0
3225202072Puerto RicoYauco MunicipioSouth134501.025437.033194.029445.0...0.00.000.00.01.00.0366.6733.330.000.0
3226202078US Virgin IslandsSt. CroixSouth125981.025437.024601.021325.0...0.00.000.00.01.00.0057.1442.860.000.0
3227202078US Virgin IslandsSt. John IslandSouth125981.025437.024601.021325.0...0.00.000.00.00.00.000.000.000.000.0
3228202078US Virgin IslandsSt. Thomas IslandSouth125981.025437.024601.021325.0...0.00.001.00.01.00.0038.4638.4623.080.0
\n", + "

3229 rows × 635 columns

\n", + "
" + ], + "text/plain": [ + " YEAR STATEFIPS STATE COUNTY REGION TERRITORY \\\n", + "0 2020 1 Alabama Autauga County South 0 \n", + "1 2020 1 Alabama Baldwin County South 0 \n", + "2 2020 1 Alabama Barbour County South 0 \n", + "3 2020 1 Alabama Bibb County South 0 \n", + "4 2020 1 Alabama Blount County South 0 \n", + "... ... ... ... ... ... ... \n", + "3224 2020 72 Puerto Rico Yabucoa Municipio South 1 \n", + "3225 2020 72 Puerto Rico Yauco Municipio South 1 \n", + "3226 2020 78 US Virgin Islands St. Croix South 1 \n", + "3227 2020 78 US Virgin Islands St. John Island South 1 \n", + "3228 2020 78 US Virgin Islands St. Thomas Island South 1 \n", + "\n", + " ACS_TOT_POP_WT ACS_TOT_POP_US_ABOVE1 ACS_TOT_POP_ABOVE5 \\\n", + "0 55639.0 54929.0 52404.0 \n", + "1 218289.0 216518.0 206329.0 \n", + "2 25026.0 24792.0 23694.0 \n", + "3 22374.0 22073.0 21121.0 \n", + "4 57755.0 57164.0 54250.0 \n", + "... ... ... ... \n", + "3224 32867.0 25437.0 31669.0 \n", + "3225 34501.0 25437.0 33194.0 \n", + "3226 25981.0 25437.0 24601.0 \n", + "3227 25981.0 25437.0 24601.0 \n", + "3228 25981.0 25437.0 24601.0 \n", + "\n", + " ACS_TOT_POP_ABOVE15 ... POS_TOT_HOSP_AMBULANCE \\\n", + "0 45034.0 ... 0.0 \n", + "1 179599.0 ... 0.0 \n", + "2 20715.0 ... 0.0 \n", + "3 18737.0 ... 1.0 \n", + "4 46687.0 ... 0.0 \n", + "... ... ... ... \n", + "3224 28057.0 ... 0.0 \n", + "3225 29445.0 ... 0.0 \n", + "3226 21325.0 ... 0.0 \n", + "3227 21325.0 ... 0.0 \n", + "3228 21325.0 ... 0.0 \n", + "\n", + " POS_HOSP_AMBULANCE_RATE POS_TOT_HOSP_CHEMO POS_HOSP_CHEMO_RATE \\\n", + "0 0.00 0.0 0.0 \n", + "1 0.00 1.0 0.0 \n", + "2 0.00 0.0 0.0 \n", + "3 0.04 0.0 0.0 \n", + "4 0.00 0.0 0.0 \n", + "... ... ... ... \n", + "3224 0.00 0.0 0.0 \n", + "3225 0.00 0.0 0.0 \n", + "3226 0.00 0.0 0.0 \n", + "3227 0.00 0.0 0.0 \n", + "3228 0.00 1.0 0.0 \n", + "\n", + " POS_TOT_HOSP_ED POS_HOSP_ED_RATE POS_PCT_HOSP_FOR_PROFIT \\\n", + "0 1.0 0.02 52.63 \n", + "1 4.0 0.02 63.49 \n", + "2 1.0 0.04 68.75 \n", + "3 1.0 0.04 46.15 \n", + "4 1.0 0.02 60.00 \n", + "... ... ... ... \n", + "3224 0.0 0.00 100.00 \n", + "3225 1.0 0.03 66.67 \n", + "3226 1.0 0.00 57.14 \n", + "3227 0.0 0.00 0.00 \n", + "3228 1.0 0.00 38.46 \n", + "\n", + " POS_PCT_HOSP_NON_PROFIT POS_PCT_HOSP_GOV CEN_AIAN_NH_IND \n", + "0 36.84 10.53 0.0 \n", + "1 36.51 0.00 0.0 \n", + "2 25.00 6.25 0.0 \n", + "3 30.77 23.08 0.0 \n", + "4 40.00 0.00 0.0 \n", + "... ... ... ... \n", + "3224 0.00 0.00 0.0 \n", + "3225 33.33 0.00 0.0 \n", + "3226 42.86 0.00 0.0 \n", + "3227 0.00 0.00 0.0 \n", + "3228 38.46 23.08 0.0 \n", + "\n", + "[3229 rows x 635 columns]" + ] + }, + "execution_count": 15, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_county" + ] + }, + { + "cell_type": "code", + "execution_count": 11, + "id": "efcfd96f", + "metadata": {}, + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:9: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mode()[0], inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:12: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n", + "C:\\Users\\prati\\AppData\\Local\\Temp\\ipykernel_2216\\2532611607.py:14: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.\n", + "The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.\n", + "\n", + "For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.\n", + "\n", + "\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n" + ] + } + ], + "source": [ + "missing_columns = df_county.columns[df_county.isnull().mean() >= 0.5]\n", + "drop_list = missing_columns.tolist()\n", + "len(drop_list)\n", + "df_county.drop(columns=drop_list, inplace=True)\n", + "\n", + "# data imputation filling numerical if the data is following a normal distribution put mean else put median and categorical columns with mode\n", + "for col in df_county.columns:\n", + " if df_county[col].dtype == 'object':\n", + " df_county[col].fillna(df_county[col].mode()[0], inplace=True)\n", + " else:\n", + " if df_county[col].skew() < 0.5:\n", + " df_county[col].fillna(df_county[col].mean(), inplace=True)\n", + " else:\n", + " df_county[col].fillna(df_county[col].median(), inplace=True)\n" + ] + }, + { + "cell_type": "code", + "execution_count": 12, + "id": "d349e310", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "YEAR 0\n", + "STATEFIPS 0\n", + "STATE 0\n", + "COUNTY 0\n", + "REGION 0\n", + " ..\n", + "POS_HOSP_ED_RATE 0\n", + "POS_PCT_HOSP_FOR_PROFIT 0\n", + "POS_PCT_HOSP_NON_PROFIT 0\n", + "POS_PCT_HOSP_GOV 0\n", + "CEN_AIAN_NH_IND 0\n", + "Length: 635, dtype: int64" + ] + }, + "execution_count": 12, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "# Check if there are any missing values left\n", + "df_county.isna().sum()" + ] + }, + { + "cell_type": "code", + "execution_count": 13, + "id": "957dac37", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "(3229, 635)" + ] + }, + "execution_count": 13, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_county" + ] + }, + { + "cell_type": "code", + "execution_count": 16, + "id": "111196a4", + "metadata": {}, + "outputs": [ + { + "data": { + "text/plain": [ + "(41051, 315)" + ] + }, + "execution_count": 16, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "df_zip.shape" + ] + }, + { + "cell_type": "code", + "execution_count": 1, + "id": "7f02e219", + "metadata": {}, + "outputs": [], + "source": [ + "import pandas as pd\n", + "from sklearn.pipeline import Pipeline\n", + "from sklearn.compose import ColumnTransformer\n", + "from sklearn.impute import SimpleImputer\n", + "from sklearn.preprocessing import StandardScaler\n", + "\n", + "import pandas as pd\n", + "\n", + "class DataProcessingAPI:\n", + " def __init__(self, df):\n", + " \"\"\"\n", + " Initialize the DataProcessingAPI class and classify numeric and categorical columns.\n", + "\n", + " Parameters:\n", + " df (pd.DataFrame): Input dataframe to classify columns.\n", + " \"\"\"\n", + " self.df = df.copy() # Use a copy to avoid modifying the original dataframe\n", + " self.numeric_cols = self.df.select_dtypes(include=['float64', 'int64']).columns.tolist()\n", + " self.categorical_cols = self.df.select_dtypes(include=['object']).columns.tolist()\n", + "\n", + " def process(self):\n", + " # Drop columns with >= 50% missing values\n", + " missing_columns = self.df.columns[self.df.isnull().mean() >= 0.5]\n", + " self.df.drop(columns=missing_columns.tolist(), inplace=True)\n", + "\n", + " # Data imputation\n", + " for col in self.df.columns:\n", + " if col in self.categorical_cols:\n", + " mode_val = self.df[col].mode()[0]\n", + " self.df[col] = self.df[col].fillna(mode_val)\n", + " else:\n", + " skew_val = self.df[col].skew()\n", + " if skew_val < 0.5:\n", + " mean_val = self.df[col].mean()\n", + " self.df[col] = self.df[col].fillna(mean_val)\n", + " else:\n", + " median_val = self.df[col].median()\n", + " self.df[col] = self.df[col].fillna(median_val)\n", + "\n", + " return self.df\n" + ] + }, + { + "cell_type": "code", + "execution_count": 4, + "id": "e1c7d9a9", + "metadata": {}, + "outputs": [], + "source": [ + "import os\n", + "import pandas as pd\n", + "\n", + "# Define the input and output directories\n", + "input_dir = r\"D:\\hackToFuture\\data\\County (2011-20)\"\n", + "output_dir = r\"D:\\hackToFuture\\new_data1\\County (2011-20)\"\n", + "\n", + "# Ensure the output directory exists\n", + "os.makedirs(output_dir, exist_ok=True)\n", + "\n", + "# Process each Excel file in the input directory\n", + "for file_name in os.listdir(input_dir):\n", + " if file_name.endswith(\".xlsx\"):\n", + " # Read the Excel file\n", + " file_path = os.path.join(input_dir, file_name)\n", + " df = pd.read_excel(file_path, sheet_name='Data')\n", + " \n", + " data_processing_pipeline = DataProcessingAPI(df)\n", + "\n", + " # Process the data using the pipeline\n", + " processed_df = data_processing_pipeline.process()\n", + " \n", + " # Save the processed data as a CSV file\n", + " output_file_path = os.path.join(output_dir, file_name.replace(\".xlsx\", \".csv\"))\n", + " processed_df.to_csv(output_file_path, index=False)" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "eead5e79", + "metadata": {}, + "outputs": [], + "source": [] + } + ], + "metadata": { + "kernelspec": { + "display_name": "env", + "language": "python", + "name": "python3" + }, + "language_info": { + "codemirror_mode": { + "name": "ipython", + "version": 3 + }, + "file_extension": ".py", + "mimetype": "text/x-python", + "name": "python", + "nbconvert_exporter": "python", + "pygments_lexer": "ipython3", + "version": "3.11.9" + } + }, + "nbformat": 4, + "nbformat_minor": 5 +} diff --git a/dataset_link.txt b/dataset_link.txt new file mode 100644 index 0000000..3d3b7d5 --- /dev/null +++ b/dataset_link.txt @@ -0,0 +1 @@ +https://drive.google.com/drive/u/0/folders/16QYXoW7UjhXVlqS8lSBRAD_LZa67Wc3_ \ No newline at end of file diff --git a/req.txt b/req.txt new file mode 100644 index 0000000..8f64b91 --- /dev/null +++ b/req.txt @@ -0,0 +1,48 @@ +# Core Data Processing +pandas +numpy +python-dateutil +tqdm + +# Visualization +matplotlib +seaborn +plotly + +# Machine Learning & Deep Learning +scikit-learn +xgboost +torch +torchvision +pytorch-lightning +pytorch-forecasting + +# Time-Series Forecasting +tsfresh +featuretools +statsmodels +pmdarima + +# Model Tracking and Explainability +mlflow +shap + +# Web Framework for Integration with React.js +fastapi +uvicorn +pydantic +python-multipart +aiofiles +jinja2 +itsdangerous +starlette + +# Optional: Web Dashboard +streamlit + +# Model Serialization +joblib + +beautifulsoup4 +openpyxl +tensorboard \ No newline at end of file