pandas and SQL data analysis combat
https://study.163.com/course/courseMain.htm?courseId=1006383008&share=2&shareId=400000000398149
Reproduced
https://www.cnblogs.com/drjava/p/10486134.html
hive provides json analytic functions: get_json_object
Instructions
For jsonArray (json array), as xjson person table has data fields:
[{"name":"王二狗","sex":"男","age":"25"},{"name":"李狗嗨","sex":"男","age":"47"}]
Json take the first object is then hive sql:
SELECT get_json_object(xjson,"$.[0]") FROM person;
The result is:
{"name":"王二狗","sex":"男","age":"25"}
Retrieves the first of the age field value json:
SELECT get_json_object(xjson,"$.[0].age") FROM person;
result
25
to sum up
get_json_object(param1,"$.param2")
python mining machine learning -sklearn breast cancer cells (bloggers personally Record)
Netease cloud watch address
Sweep the two-dimensional code, attention bloggers homepage to learn more knowledge of Python