{"html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyokkuns.hatenadiary.org%2Fentry%2F20121217%2F1355756912\" title=\" Pig\u306ePython UDF\u3092\u8a66\u3057\u3066\u307f\u305f - yokkuns\u306e\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","provider_name":"Hatena Blog","provider_url":"https://hatena.blog","type":"rich","description":"Python\u3067UDF\u304c\u66f8\u3051\u308b\u306e\u3067\u8a66\u3057\u3066\u307f\u305f\u3002 User Defined Functions \u65e5\u4ed8\u306e\u5dee\u3092\u8a08\u7b97\u3059\u308bUDF\u3092\u66f8\u3044\u3066\u307f\u308b \u3068\u308a\u3042\u3048\u305a\u3001\u65e5\u4ed8\u306e\u5dee\u3092\u8a08\u7b97\u3059\u308bUDF\u3092\u66f8\u3044\u3066\u307f\u305f\u3002 udf.py @outputSchema\u3067\u3001\u51fa\u529b\u306e\u30b9\u30ad\u30fc\u30de\u3092\u66f8\u3044\u3066\u3001\u3042\u3068\u306f\u666e\u901a\u306b\u66f8\u304f\u3002 #!/usr/bin/env python import time @outputSchema(\"datediff:int\") def DateDiff(a,b): a_time = time.mktime(time.strptime(a,'%Y-%m-%d')) b_time = time.mktime(time.strpti\u2026","version":"1.0","blog_url":"https://yokkuns.hatenadiary.org/","image_url":null,"author_name":"yokkuns","title":" Pig\u306ePython UDF\u3092\u8a66\u3057\u3066\u307f\u305f","width":"100%","height":"190","author_url":"https://blog.hatena.ne.jp/yokkuns/","blog_title":"yokkuns\u306e\u65e5\u8a18","published":"2012-12-17 00:08:32","url":"https://yokkuns.hatenadiary.org/entry/20121217/1355756912","categories":["pig"]}