Skip to content

Instantly share code, notes, and snippets.

View jcary741's full-sized avatar
👾
New challenges

Jay Cary jcary741

👾
New challenges
  • Chloris Geospatial
View GitHub Profile
@Thisisnotdalton
Thisisnotdalton / shared_memory_dataframes.py
Last active October 9, 2022 08:11
Examples of using Python 3.8+ shared_memory for working with pandas DataFrames and geopandas GeoDataFrames.
import pickle
import typing
from multiprocessing.shared_memory import SharedMemory, ShareableList
import numpy as np
import pandas as pd
import geopandas as gpd
def create_shared_memory_of_size(shared_memory_name: str, minimum_size_bytes: int) -> SharedMemory: