joshuasundance commited on
Commit
ed7c886
1 Parent(s): 8e8604d

Upload govgis_nov2023_slim-spatial_gpd.ipynb

Browse files
Files changed (1) hide show
  1. govgis_nov2023_slim-spatial_gpd.ipynb +204 -0
govgis_nov2023_slim-spatial_gpd.ipynb ADDED
@@ -0,0 +1,204 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cells": [
3
+ {
4
+ "cell_type": "code",
5
+ "execution_count": 1,
6
+ "id": "f3038192-f10e-4751-90ac-e90061a994bb",
7
+ "metadata": {},
8
+ "outputs": [],
9
+ "source": [
10
+ "import geopandas as gpd"
11
+ ]
12
+ },
13
+ {
14
+ "cell_type": "code",
15
+ "execution_count": 2,
16
+ "id": "777b75fd-4560-4c15-8088-a0aeb8de663f",
17
+ "metadata": {},
18
+ "outputs": [
19
+ {
20
+ "name": "stdout",
21
+ "output_type": "stream",
22
+ "text": [
23
+ "CPU times: user 2.21 s, sys: 1.48 s, total: 3.69 s\n",
24
+ "Wall time: 3.31 s\n"
25
+ ]
26
+ },
27
+ {
28
+ "data": {
29
+ "text/plain": [
30
+ "(865304, 7)"
31
+ ]
32
+ },
33
+ "execution_count": 2,
34
+ "metadata": {},
35
+ "output_type": "execute_result"
36
+ }
37
+ ],
38
+ "source": [
39
+ "%%time\n",
40
+ "\n",
41
+ "gdf = gpd.read_parquet('govgis_nov2023_slim_spatial.geoparquet')\n",
42
+ "gdf.shape"
43
+ ]
44
+ },
45
+ {
46
+ "cell_type": "code",
47
+ "execution_count": 3,
48
+ "id": "4a1edc5a-a2dd-410c-86d1-a2105af6e1ca",
49
+ "metadata": {},
50
+ "outputs": [
51
+ {
52
+ "data": {
53
+ "text/html": [
54
+ "<div>\n",
55
+ "<style scoped>\n",
56
+ " .dataframe tbody tr th:only-of-type {\n",
57
+ " vertical-align: middle;\n",
58
+ " }\n",
59
+ "\n",
60
+ " .dataframe tbody tr th {\n",
61
+ " vertical-align: top;\n",
62
+ " }\n",
63
+ "\n",
64
+ " .dataframe thead th {\n",
65
+ " text-align: right;\n",
66
+ " }\n",
67
+ "</style>\n",
68
+ "<table border=\"1\" class=\"dataframe\">\n",
69
+ " <thead>\n",
70
+ " <tr style=\"text-align: right;\">\n",
71
+ " <th></th>\n",
72
+ " <th>id</th>\n",
73
+ " <th>name</th>\n",
74
+ " <th>type</th>\n",
75
+ " <th>description</th>\n",
76
+ " <th>url</th>\n",
77
+ " <th>metadata_text</th>\n",
78
+ " <th>geometry</th>\n",
79
+ " </tr>\n",
80
+ " </thead>\n",
81
+ " <tbody>\n",
82
+ " <tr>\n",
83
+ " <th>0</th>\n",
84
+ " <td>d29837cf-1de0-4fe7-988a-bbcfe3acb1dc</td>\n",
85
+ " <td>Subdivision Names</td>\n",
86
+ " <td>Annotation Layer</td>\n",
87
+ " <td>This annotation data set shows the names of su...</td>\n",
88
+ " <td>https://pubgis.ci.lubbock.tx.us/server/rest/se...</td>\n",
89
+ " <td>url: https://pubgis.ci.lubbock.tx.us/server/re...</td>\n",
90
+ " <td>POLYGON ((-102.03901 33.40872, -101.73845 33.4...</td>\n",
91
+ " </tr>\n",
92
+ " <tr>\n",
93
+ " <th>1</th>\n",
94
+ " <td>b8e498f8-dff4-4de3-8d6e-21dfcfbd1cb8</td>\n",
95
+ " <td>Street Names</td>\n",
96
+ " <td>Annotation Layer</td>\n",
97
+ " <td>Street Names</td>\n",
98
+ " <td>https://pubgis.ci.lubbock.tx.us/server/rest/se...</td>\n",
99
+ " <td>url: https://pubgis.ci.lubbock.tx.us/server/re...</td>\n",
100
+ " <td>POLYGON ((-102.06369 33.41673, -101.72852 33.4...</td>\n",
101
+ " </tr>\n",
102
+ " <tr>\n",
103
+ " <th>2</th>\n",
104
+ " <td>1b533e27-535e-42af-a322-d81b509a8d09</td>\n",
105
+ " <td>Lot Numbers</td>\n",
106
+ " <td>Annotation Layer</td>\n",
107
+ " <td>Lot Numbers</td>\n",
108
+ " <td>https://pubgis.ci.lubbock.tx.us/server/rest/se...</td>\n",
109
+ " <td>url: https://pubgis.ci.lubbock.tx.us/server/re...</td>\n",
110
+ " <td>POLYGON ((-102.03848 33.40875, -101.73667 33.4...</td>\n",
111
+ " </tr>\n",
112
+ " <tr>\n",
113
+ " <th>3</th>\n",
114
+ " <td>569847bb-8c4d-4d24-9adc-4229a711989b</td>\n",
115
+ " <td>Block Numbers</td>\n",
116
+ " <td>Annotation Layer</td>\n",
117
+ " <td>Block Numbers</td>\n",
118
+ " <td>https://pubgis.ci.lubbock.tx.us/server/rest/se...</td>\n",
119
+ " <td>url: https://pubgis.ci.lubbock.tx.us/server/re...</td>\n",
120
+ " <td>POLYGON ((-101.97937 33.51463, -101.78230 33.5...</td>\n",
121
+ " </tr>\n",
122
+ " <tr>\n",
123
+ " <th>4</th>\n",
124
+ " <td>66ae68de-bc65-434e-a707-95ec66ff8520</td>\n",
125
+ " <td>Subdivision Names</td>\n",
126
+ " <td>Annotation Layer</td>\n",
127
+ " <td>Subdivision/Addition Names</td>\n",
128
+ " <td>https://pubgis.ci.lubbock.tx.us/server/rest/se...</td>\n",
129
+ " <td>url: https://pubgis.ci.lubbock.tx.us/server/re...</td>\n",
130
+ " <td>POLYGON ((-102.03901 33.40872, -101.73845 33.4...</td>\n",
131
+ " </tr>\n",
132
+ " </tbody>\n",
133
+ "</table>\n",
134
+ "</div>"
135
+ ],
136
+ "text/plain": [
137
+ " id name type \\\n",
138
+ "0 d29837cf-1de0-4fe7-988a-bbcfe3acb1dc Subdivision Names Annotation Layer \n",
139
+ "1 b8e498f8-dff4-4de3-8d6e-21dfcfbd1cb8 Street Names Annotation Layer \n",
140
+ "2 1b533e27-535e-42af-a322-d81b509a8d09 Lot Numbers Annotation Layer \n",
141
+ "3 569847bb-8c4d-4d24-9adc-4229a711989b Block Numbers Annotation Layer \n",
142
+ "4 66ae68de-bc65-434e-a707-95ec66ff8520 Subdivision Names Annotation Layer \n",
143
+ "\n",
144
+ " description \\\n",
145
+ "0 This annotation data set shows the names of su... \n",
146
+ "1 Street Names \n",
147
+ "2 Lot Numbers \n",
148
+ "3 Block Numbers \n",
149
+ "4 Subdivision/Addition Names \n",
150
+ "\n",
151
+ " url \\\n",
152
+ "0 https://pubgis.ci.lubbock.tx.us/server/rest/se... \n",
153
+ "1 https://pubgis.ci.lubbock.tx.us/server/rest/se... \n",
154
+ "2 https://pubgis.ci.lubbock.tx.us/server/rest/se... \n",
155
+ "3 https://pubgis.ci.lubbock.tx.us/server/rest/se... \n",
156
+ "4 https://pubgis.ci.lubbock.tx.us/server/rest/se... \n",
157
+ "\n",
158
+ " metadata_text \\\n",
159
+ "0 url: https://pubgis.ci.lubbock.tx.us/server/re... \n",
160
+ "1 url: https://pubgis.ci.lubbock.tx.us/server/re... \n",
161
+ "2 url: https://pubgis.ci.lubbock.tx.us/server/re... \n",
162
+ "3 url: https://pubgis.ci.lubbock.tx.us/server/re... \n",
163
+ "4 url: https://pubgis.ci.lubbock.tx.us/server/re... \n",
164
+ "\n",
165
+ " geometry \n",
166
+ "0 POLYGON ((-102.03901 33.40872, -101.73845 33.4... \n",
167
+ "1 POLYGON ((-102.06369 33.41673, -101.72852 33.4... \n",
168
+ "2 POLYGON ((-102.03848 33.40875, -101.73667 33.4... \n",
169
+ "3 POLYGON ((-101.97937 33.51463, -101.78230 33.5... \n",
170
+ "4 POLYGON ((-102.03901 33.40872, -101.73845 33.4... "
171
+ ]
172
+ },
173
+ "execution_count": 3,
174
+ "metadata": {},
175
+ "output_type": "execute_result"
176
+ }
177
+ ],
178
+ "source": [
179
+ "gdf.head()"
180
+ ]
181
+ }
182
+ ],
183
+ "metadata": {
184
+ "kernelspec": {
185
+ "display_name": "Python 3 (ipykernel)",
186
+ "language": "python",
187
+ "name": "python3"
188
+ },
189
+ "language_info": {
190
+ "codemirror_mode": {
191
+ "name": "ipython",
192
+ "version": 3
193
+ },
194
+ "file_extension": ".py",
195
+ "mimetype": "text/x-python",
196
+ "name": "python",
197
+ "nbconvert_exporter": "python",
198
+ "pygments_lexer": "ipython3",
199
+ "version": "3.11.6"
200
+ }
201
+ },
202
+ "nbformat": 4,
203
+ "nbformat_minor": 5
204
+ }