Transform nested dicts with pandas apply/lambda | Pinterest