vDataFrame.to_geopandas

In [ ]:
vDataFrame.to_geopandas(geometry: str)

Converts the vDataFrame to a Geopandas DataFrame.

⚠ Warning: The data will be loaded in memory.

Parameters

Name Type Optional Description
geometry
str
Geometry object used to create the GeoDataFrame. It can also be a Geography object but it will be casted to Geometry.

Returns

vDataFrame : self

Example

In [1]:
from verticapy.datasets import load_world
world = load_world()
display(world)
123
pop_est
Int
Abc
continent
Varchar(32)
Abc
country
Varchar(82)
🌎
Geometry(1048576)
1140Seven seas (open ocean)Fr. S. Antarctic Lands
22931South AmericaFalkland Is.
34050AntarcticaAntarctica
457713North AmericaGreenland
5265100AsiaN. Cyprus
6279070OceaniaNew Caledonia
7282814OceaniaVanuatu
8329988North AmericaBahamas
9339747EuropeIceland
10360346North AmericaBelize
11443593AsiaBrunei
12591919South AmericaSuriname
13594130EuropeLuxembourg
14603253AfricaW. Sahara
15642550EuropeMontenegro
16647581OceaniaSolomon Is.
17737718South AmericaGuyana
18758288AsiaBhutan
19778358AfricaEq. Guinea
20865267AfricaDjibouti
21920938OceaniaFiji
221218208North AmericaTrinidad and Tobago
231221549AsiaCyprus
241251581EuropeEstonia
251291358AsiaTimor-Leste
261467152AfricaeSwatini
271772255AfricaGabon
281792338AfricaGuinea-Bissau
291895250EuropeKosovo
301944643EuropeLatvia
311958042AfricaLesotho
321972126EuropeSlovenia
332051363AfricaGambia
342103721EuropeMacedonia
352214858AfricaBotswana
362314307AsiaQatar
372484780AfricaNamibia
382823859EuropeLithuania
392875422AsiaKuwait
402990561North AmericaJamaica
413045191AsiaArmenia
423047987EuropeAlbania
433068243AsiaMongolia
443351827North AmericaPuerto Rico
453360148South AmericaUruguay
463424386AsiaOman
473474121EuropeMoldova
483500000AfricaSomaliland
493753142North AmericaPanama
503758571AfricaMauritania
513856181EuropeBosnia and Herz.
524292095EuropeCroatia
534510327OceaniaNew Zealand
544543126AsiaPalestine
554689021AfricaLiberia
564926330AsiaGeorgia
574930258North AmericaCosta Rica
584954674AfricaCongo
595011102EuropeIreland
605320045EuropeNorway
615351277AsiaTurkmenistan
625445829EuropeSlovakia
635491218EuropeFinland
645605948EuropeDenmark
655625118AfricaCentral African Rep.
665789122AsiaKyrgyzstan
675918919AfricaEritrea
686025951North AmericaNicaragua
696072475AsiaUnited Arab Emirates
706163195AfricaSierra Leone
716172011North AmericaEl Salvador
726229794AsiaLebanon
736653210AfricaLibya
746909701OceaniaPapua New Guinea
756943739South AmericaParaguay
767101510EuropeBulgaria
777111024EuropeSerbia
787126706AsiaLaos
797531386AfricaSomalia
807965055AfricaTogo
818236303EuropeSwitzerland
828299706AsiaIsrael
838468555AsiaTajikistan
848754413EuropeAustria
859038741North AmericaHonduras
869549747EuropeBelarus
879850845EuropeHungary
889960487EuropeSweden
899961396AsiaAzerbaijan
9010248069AsiaJordan
9110646714North AmericaHaiti
9210674723EuropeCzechia
9310734247North AmericaDominican Rep.
9410768477EuropeGreece
9510839514EuropePortugal
9611038805AfricaBenin
9711138234South AmericaBolivia
9811147407North AmericaCuba
9911403800AfricaTunisia
10011466756AfricaBurundi
Rows: 1-100 | Columns: 4
In [2]:
world.to_geopandas(geometry = "geometry")
Out[2]:
pop_est continent country geometry
0 140 Seven seas (open ocean) Fr. S. Antarctic Lands POLYGON ((68.93500 -48.62500, 69.58000 -48.940...
1 2931 South America Falkland Is. POLYGON ((-61.20000 -51.85000, -60.00000 -51.2...
2 4050 Antarctica Antarctica MULTIPOLYGON (((-48.66062 -78.04702, -48.15140...
3 57713 North America Greenland POLYGON ((-46.76379 82.62796, -43.40644 83.225...
4 265100 Asia N. Cyprus POLYGON ((32.73178 35.14003, 32.80247 35.14550...
... ... ... ... ...
172 207353391 South America Brazil POLYGON ((-53.37366 -33.76838, -53.65054 -33.2...
173 260580739 Asia Indonesia MULTIPOLYGON (((141.00021 -2.60015, 141.01706 ...
174 326625791 North America United States of America MULTIPOLYGON (((-122.84000 49.00000, -120.0000...
175 1281935911 Asia India POLYGON ((97.32711 28.26158, 97.40256 27.88254...
176 1379302771 Asia China MULTIPOLYGON (((109.47521 18.19770, 108.65521 ...

177 rows × 4 columns