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:
@gene1wood
gene1wood / aws-lambda-relative-import-no-known-parent-package.md
Last active September 13, 2024 18:56
Python relative imports in AWS Lambda fail with `attempted relative import with no known parent package`

Python relative imports in AWS Lambda fail with attempted relative import with no known parent package

The Problem

In AWS Lambda if I attempt an explicit relative import like this

.
├── lambda_file.py
└── example.py