#!/usr/bin/env python # coding: utf-8 # In[1]: get_ipython().run_line_magic('load_ext', 'rpy2.ipython') # # Python 🐍 # In[2]: import geopandas db = geopandas.read_file( ( "http://d2ad6b4ur7yvpq.cloudfront.net/"\ "naturalearth-3.3.0/ne_110m_land.geojson" ) ) db.plot(); # In[3]: db.to_parquet("db.pq", compression=None) # # R 🦜 # In[4]: get_ipython().run_cell_magic('R', '', 'library(sfarrow)\n\ndb <- st_read_parquet("db.pq")\nplot(db$geometry)\n') # In[5]: get_ipython().run_cell_magic('R', '', 'st_write_parquet(db, "db2.pq")\n') # # Python 🐍 # In[6]: db2 = geopandas.read_parquet("db2.pq") db2.plot();