2017年8月19日

Pyspark

摘要: It appears that you are attempting to reference SparkContext from a broadcast " Exception: It appears that you are attempting to reference SparkContex 阅读全文

posted @ 2017-08-19 22:04 下士闻道 阅读(1242) 评论(0) 推荐(0) 编辑

Python手记

摘要: 字符串的拼接 1.“+”,如果是字符和数字相连,要使用str()函数对于数字进行字符转化; 2.join() 3.",",链接的两个字符串之间用空格做关联 4.占位符 tmp +=1 #print 'r'%tmp print("row num is: %s"%(tmp)) print('value 阅读全文

posted @ 2017-08-19 22:03 下士闻道 阅读(314) 评论(0) 推荐(0) 编辑

导航