自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

chaoge_to_change的博客

python linux hive spark hadoop machine learning sas r

  • 博客(7)
  • 收藏
  • 关注

转载 docker window7 安装使用学习笔记

Docker 包括三个基本概念:镜像(Image)容器(Container)仓库(Repository)这三部分组成了Docker的整个生命周期,如下图所示,容器是由镜像实例化而来的,这和我们学习的面向对象的概念十分相似,我们可以把镜像想象成类,把容器想象成类经过实例化后的对象,这样就非常好理解镜像和容器的关系了。 Docker镜像Docker的镜像概念类似于虚拟机里的...

2018-11-07 16:12:54 139

原创 could only be replicated to 1 nodes instead of minReplication (=2). There are 3 datanode(s) running

在一个bash中写了很多连续的hive脚本,总是跑一段时间后出现org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /tmp/hadoop-yarn/staging/mqq/.staging/job_1540025341471_0619/libjars/mail-1.4.1.jar could only be repl...

2018-10-26 00:20:39 657

原创 hadoop dead datanodes处理方法

折腾了我几天,郁闷啊 跑hive过程中出现org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /tmp/hadoop-yarn/staging/mqq/.staging/job_1539959886874_0003/libjars/commons-logging-1.1.1.jar could only be...

2018-10-20 19:16:51 4003

原创 pandas map apply applymap区别

import pandas as pdimport numpy as npdf=pd.DataFrame(np.random.randn(4,3),index=['utah','ohio','texas','ny'],columns=list('abc'))help(df.apply)# Objects passed to functions are series objects h...

2018-07-04 15:12:07 220

原创 pandas 切片,iloc,loc,ix

import pandas as pd##create a raw dataraw_data = { 'regiment': ['Nighthawks', 'Nighthawks', 'Nighthawks', 'Nighthawks', 'Dragoons', 'Dragoons', 'Dragoons', 'Dragoons', 'Scouts', 'Scouts', ...

2018-07-04 11:58:14 272

原创 python and or bool 深入分析

## and 优先级大于or##检查一个变量转换成bool后是什么用bool函数,string '', 0, []是False,其它是True##and 始终返回第一个False处的变量值,如果没有False,返回最后一个值##or 始终返回第一个True处的变量值,如果没有True,返回最后一个值bool('')bool(0)#所有变量的位操作都是通过强制转换成bool实现的...

2018-07-04 10:03:46 640

原创 python list或string按指定分段

方法一def list_cut(mylist,count):    length=len(mylist)    merchant=length//count    re_merchant=merchant+1*(0 if length%count==0 else 1)    begin=0    result_list = []    while (count>0):   ...

2018-07-03 20:00:39 2280

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除