2019年6月21日

event-01-hive_sql查出数据到dataframe不能保存Array类型数据

摘要: 问题:hive的Array类型数据在dataframe中以字符串形式存储 思路: hive的Array数据类型找不到直接以list的形式存储在dataframe的方法,暂时通过map来实现。 阅读全文

posted @ 2019-06-21 02:02 三金啊 阅读(315) 评论(0) 推荐(0)

2019年5月4日

01-numpy

摘要: 01 读取结构化文件:genfromtxt() 02 向量、矩阵:array对象 # shape属性用于查看矩阵的行列信息print(vector.shape)# dtype属性用于查看元素的类型# 元素类型不一致,numpy会自动转换为一致的类型print(matrix[1, 1]) #获取矩阵内 阅读全文

posted @ 2019-05-04 14:07 三金啊 阅读(121) 评论(0) 推荐(0)

导航