摘要: 可以使用python -m cProfile -s cumulative timing_functions.py查看每个函数的耗时,进而提升效率;在一个大的df中index取数也很耗时,可以sort后用偏移取数 阅读全文
posted @ 2017-11-13 11:25 oraser 阅读(114) 评论(0) 推荐(0)
摘要: 查看、卸载已安装的yum包 查看已安装的yum包 [root@iZ23rter8cjZ ~]# rpm -qa|grep yumyum-metadata-parser-1.1.2-16.el6.x86_64yum-plugin-fastestmirror-1.1.30-17.el6_5.noarch 阅读全文
posted @ 2017-11-09 19:20 oraser 阅读(405) 评论(0) 推荐(0)
摘要: 首先 当然是得在机子上配置安装Python环境啦,到这去下吧:https://www.python.org ; 环境配置过程不再赘述了。 其次 python 3.x改为 python -m http.server 打开cmd或者terminal,输入 python -m SimpleHTTPServ 阅读全文
posted @ 2017-10-16 21:07 oraser 阅读(285) 评论(0) 推荐(0)
摘要: 1。regexp_extract 语法: regexp_extract(string subject, string pattern, int index) 返回值: string 说明: 将字符串subject按照pattern正则表达式的规则拆分,返回index指定的字符。 第一参数: 要处理的 阅读全文
posted @ 2017-10-10 21:51 oraser 阅读(2323) 评论(0) 推荐(0)
摘要: hive中 日期格式转化办法: 2014-11-10 和 20141110相互转化的办法: 1.from_unixtime && unix_timestamp -- 20141110 select from_unixtime(unix_timestamp('2014-11-10','yyyy-mm- 阅读全文
posted @ 2017-10-10 21:33 oraser 阅读(860) 评论(0) 推荐(0)
摘要: http://blog.csdn.net/tina_ttl/article/details/51031113 Jupyter notebook )前身为IPython Notebook,学习时,可以找两者的教程 Jupyter Project Documentation Jupyter Notebo 阅读全文
posted @ 2017-10-09 21:06 oraser 阅读(615) 评论(0) 推荐(0)
摘要: 1. parse_url(url, partToExtract[, key]) 解析URL字符串,partToExtract的选项包含[HOST,PATH,QUERY,REF,PROTOCOL,FILE,AUTHORITY,USERINFO] eg: 2. concat(str1,SEP,str2, 阅读全文
posted @ 2017-10-09 20:41 oraser 阅读(319) 评论(0) 推荐(0)
摘要: 1. 字符串长度函数:length 语法: length(string A) 返回值: int 说明:返回字符串A的长度 举例: hive> select length('abcedfg') from lxw_dual; 7 2. 字符串反转函数:reverse 语法: reverse(string 阅读全文
posted @ 2017-10-09 20:31 oraser 阅读(7227) 评论(0) 推荐(0)
摘要: https://docs.anaconda.com/anaconda/navigator/ 阅读全文
posted @ 2017-09-14 10:48 oraser 阅读(132) 评论(0) 推荐(0)
摘要: https://www.douban.com/note/298095260/ http://blog.csdn.net/mytestmy/article/details/26969149 http://licstar.net/archives/328 阅读全文
posted @ 2017-09-11 14:32 oraser 阅读(102) 评论(0) 推荐(0)