building selection - detached - 2/4 done

This commit is contained in:
MasoodShamsaiee 2024-06-11 12:52:01 -04:00
parent 5ba68bdc13
commit 5d0f7a9699
2 changed files with 1 additions and 336 deletions

View File

@ -7022,344 +7022,9 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## selection attached buildings"
"# archive"
]
},
{
"cell_type": "code",
"execution_count": 43,
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"Index(['OBJECTID', 'ID_UEV', 'CIVIQUE_DE', 'CIVIQUE_FI', 'NOM_RUE',\n",
" 'MUNICIPALI', 'CODE_UTILI', 'LIBELLE_UT', 'CATEGORIE_', 'Hieght_LiD',\n",
" 'AREA_NEW', 'MBG_Width', 'MBG_Length', 'MBG_Orientation',\n",
" 'Shape_Length', 'Shape_Area', 'BuildingCategory', 'BuildingVolume',\n",
" 'FloorNu_RawTax', 'FloorNu_RawTax.1', 'Floor_frmHieght',\n",
" 'TotalFloorArea', 'geometry', 'ANNEE_CONS', 'New_AspectRatio',\n",
" 'New_SurfacetoVolumeRatio', 'transformed_geometry', 'calculated_area',\n",
" 'YearGroup', 'Building_Size', 'Building_Floors', 'lod'],\n",
" dtype='object')"
]
},
"execution_count": 43,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"sampled_buildings_dict['detached']['1800-1945']['Single-Use Office'].columns"
]
},
{
"cell_type": "code",
"execution_count": 45,
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"there are 12 buildings in the filtered dataframe\n"
]
},
{
"data": {
"text/html": [
"<div>\n",
"<style scoped>\n",
" .dataframe tbody tr th:only-of-type {\n",
" vertical-align: middle;\n",
" }\n",
"\n",
" .dataframe tbody tr th {\n",
" vertical-align: top;\n",
" }\n",
"\n",
" .dataframe thead th {\n",
" text-align: right;\n",
" }\n",
"</style>\n",
"<table border=\"1\" class=\"dataframe\">\n",
" <thead>\n",
" <tr style=\"text-align: right;\">\n",
" <th></th>\n",
" <th>AREA_NEW</th>\n",
" <th>ID_UEV</th>\n",
" <th>CIVIQUE_DE</th>\n",
" <th>CIVIQUE_FI</th>\n",
" <th>NOM_RUE</th>\n",
" <th>Shape_Area</th>\n",
" <th>calculated_area</th>\n",
" <th>YearGroup</th>\n",
" <th>Building_Size</th>\n",
" <th>Building_Floors</th>\n",
" <th>lod</th>\n",
" <th>TotalFloorArea</th>\n",
" </tr>\n",
" </thead>\n",
" <tbody>\n",
" <tr>\n",
" <th>0</th>\n",
" <td>143</td>\n",
" <td>1036925</td>\n",
" <td>2008</td>\n",
" <td>2010</td>\n",
" <td>rue Mackay (MTL)</td>\n",
" <td>183</td>\n",
" <td>142.802691</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod_2</td>\n",
" <td>429</td>\n",
" </tr>\n",
" <tr>\n",
" <th>1</th>\n",
" <td>117</td>\n",
" <td>1036915</td>\n",
" <td>2060</td>\n",
" <td>2060</td>\n",
" <td>rue Mackay (MTL)</td>\n",
" <td>119</td>\n",
" <td>116.490061</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod_2</td>\n",
" <td>351</td>\n",
" </tr>\n",
" <tr>\n",
" <th>2</th>\n",
" <td>106</td>\n",
" <td>1036921</td>\n",
" <td>2030</td>\n",
" <td>2030</td>\n",
" <td>rue Mackay (MTL)</td>\n",
" <td>108</td>\n",
" <td>106.400838</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod_2</td>\n",
" <td>318</td>\n",
" </tr>\n",
" <tr>\n",
" <th>3</th>\n",
" <td>106</td>\n",
" <td>1036923</td>\n",
" <td>2020</td>\n",
" <td>2020</td>\n",
" <td>rue Mackay (MTL)</td>\n",
" <td>108</td>\n",
" <td>105.945579</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod1</td>\n",
" <td>318</td>\n",
" </tr>\n",
" <tr>\n",
" <th>4</th>\n",
" <td>97</td>\n",
" <td>1010717</td>\n",
" <td>4635</td>\n",
" <td>4635</td>\n",
" <td>rue Sherbrooke Ouest (MTL+MTO+WMT)</td>\n",
" <td>122</td>\n",
" <td>96.913628</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>2 floors</td>\n",
" <td>lod1</td>\n",
" <td>194</td>\n",
" </tr>\n",
" <tr>\n",
" <th>5</th>\n",
" <td>131</td>\n",
" <td>1037607</td>\n",
" <td>3467</td>\n",
" <td>3467</td>\n",
" <td>rue Peel (MTL)</td>\n",
" <td>132</td>\n",
" <td>130.751907</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod1</td>\n",
" <td>393</td>\n",
" </tr>\n",
" <tr>\n",
" <th>6</th>\n",
" <td>124</td>\n",
" <td>1003413</td>\n",
" <td>1241</td>\n",
" <td>1243</td>\n",
" <td>rue Saint-Hubert (MTL)</td>\n",
" <td>137</td>\n",
" <td>124.451621</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod1</td>\n",
" <td>372</td>\n",
" </tr>\n",
" <tr>\n",
" <th>7</th>\n",
" <td>107</td>\n",
" <td>1010768</td>\n",
" <td>4484</td>\n",
" <td>4484</td>\n",
" <td>rue Sherbrooke Ouest (MTL+MTO+WMT)</td>\n",
" <td>119</td>\n",
" <td>107.344803</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod1</td>\n",
" <td>321</td>\n",
" </tr>\n",
" <tr>\n",
" <th>8</th>\n",
" <td>119</td>\n",
" <td>1036917</td>\n",
" <td>2050</td>\n",
" <td>2052</td>\n",
" <td>rue Mackay (MTL)</td>\n",
" <td>167</td>\n",
" <td>118.992284</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod1</td>\n",
" <td>357</td>\n",
" </tr>\n",
" <tr>\n",
" <th>9</th>\n",
" <td>134</td>\n",
" <td>1036798</td>\n",
" <td>2140</td>\n",
" <td>2140</td>\n",
" <td>rue Bishop (MTL)</td>\n",
" <td>172</td>\n",
" <td>133.812163</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod1</td>\n",
" <td>402</td>\n",
" </tr>\n",
" <tr>\n",
" <th>10</th>\n",
" <td>126</td>\n",
" <td>1025003</td>\n",
" <td>4517</td>\n",
" <td>4519</td>\n",
" <td>rue Saint-Denis (MTL)</td>\n",
" <td>145</td>\n",
" <td>125.497736</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod1</td>\n",
" <td>378</td>\n",
" </tr>\n",
" <tr>\n",
" <th>11</th>\n",
" <td>120</td>\n",
" <td>1013114</td>\n",
" <td>4927</td>\n",
" <td>4927</td>\n",
" <td>rue Sherbrooke Ouest (MTL+MTO+WMT)</td>\n",
" <td>142</td>\n",
" <td>120.122615</td>\n",
" <td>1800-1945</td>\n",
" <td>Single use office</td>\n",
" <td>3 floors</td>\n",
" <td>lod1</td>\n",
" <td>360</td>\n",
" </tr>\n",
" </tbody>\n",
"</table>\n",
"</div>"
],
"text/plain": [
" AREA_NEW ID_UEV CIVIQUE_DE CIVIQUE_FI \\\n",
"0 143 1036925 2008 2010 \n",
"1 117 1036915 2060 2060 \n",
"2 106 1036921 2030 2030 \n",
"3 106 1036923 2020 2020 \n",
"4 97 1010717 4635 4635 \n",
"5 131 1037607 3467 3467 \n",
"6 124 1003413 1241 1243 \n",
"7 107 1010768 4484 4484 \n",
"8 119 1036917 2050 2052 \n",
"9 134 1036798 2140 2140 \n",
"10 126 1025003 4517 4519 \n",
"11 120 1013114 4927 4927 \n",
"\n",
" NOM_RUE Shape_Area calculated_area \\\n",
"0 rue Mackay (MTL) 183 142.802691 \n",
"1 rue Mackay (MTL) 119 116.490061 \n",
"2 rue Mackay (MTL) 108 106.400838 \n",
"3 rue Mackay (MTL) 108 105.945579 \n",
"4 rue Sherbrooke Ouest (MTL+MTO+WMT) 122 96.913628 \n",
"5 rue Peel (MTL) 132 130.751907 \n",
"6 rue Saint-Hubert (MTL) 137 124.451621 \n",
"7 rue Sherbrooke Ouest (MTL+MTO+WMT) 119 107.344803 \n",
"8 rue Mackay (MTL) 167 118.992284 \n",
"9 rue Bishop (MTL) 172 133.812163 \n",
"10 rue Saint-Denis (MTL) 145 125.497736 \n",
"11 rue Sherbrooke Ouest (MTL+MTO+WMT) 142 120.122615 \n",
"\n",
" YearGroup Building_Size Building_Floors lod TotalFloorArea \n",
"0 1800-1945 Single use office 3 floors lod_2 429 \n",
"1 1800-1945 Single use office 3 floors lod_2 351 \n",
"2 1800-1945 Single use office 3 floors lod_2 318 \n",
"3 1800-1945 Single use office 3 floors lod1 318 \n",
"4 1800-1945 Single use office 2 floors lod1 194 \n",
"5 1800-1945 Single use office 3 floors lod1 393 \n",
"6 1800-1945 Single use office 3 floors lod1 372 \n",
"7 1800-1945 Single use office 3 floors lod1 321 \n",
"8 1800-1945 Single use office 3 floors lod1 357 \n",
"9 1800-1945 Single use office 3 floors lod1 402 \n",
"10 1800-1945 Single use office 3 floors lod1 378 \n",
"11 1800-1945 Single use office 3 floors lod1 360 "
]
},
"execution_count": 45,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"get_filtered_buildings(sampled_buildings_dict, 'fully_attached', '1800-1945', 'Single-Use Office')[['AREA_NEW','ID_UEV', 'CIVIQUE_DE', 'CIVIQUE_FI', 'NOM_RUE','Shape_Area','calculated_area',\n",
" 'YearGroup', 'Building_Size', 'Building_Floors', 'lod','TotalFloorArea']]"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
},
{
"cell_type": "markdown",
"metadata": {},

Binary file not shown.