# Python

# pandas

Merge, join, concatenate and compare (opens new window)

dict setdefault

>>> a = dict()
>>> a.setdefault("ok",[]).append("test")
>>> a
{'ok': ['test']}
>>>
1
2
3
4
5

# pydantic

Serialisation can be customised on a model (opens new window)


pip install 直接从 github repo 安装

pip install git+https://github.com/mymarilyn/clickhouse-driver@master#egg=clickhouse-driver

pip download pkg 下载包到本地


# contextmanager

装饰器中使用 contextmanager 减少兼容同步异步函数而产生的重复代码

contextmanager

# sqlalchmey

sqlalchemy session