Skip to content

Instantly share code, notes, and snippets.

View huaxlin's full-sized avatar
🎯
Focusing

huaxlin huaxlin

🎯
Focusing
View GitHub Profile
#!/usr/bin/env bash
set -e
help()
{
echo "Usage: $0 [[-c | --container]"
echo " --]"
echo ""
echo "Script Options:"
@huaxlin
huaxlin / jsonable_encoder_pandas_dataframe.py
Last active August 11, 2022 03:22
encode pandas.DataFrame object to jsonable dict object
import json
from typing import Optional
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from pandas import DataFrame
class JsonableEncoderError(Exception):
pass