- 博客(7)
- 收藏
- 关注
原创 Pyspark连接两个dataframe,横向连接,(可能是中文互联网上首个正确方法)
简单的问题,横向连接两个df,如下图所示。pyspark中没有类似padas中的pd.concat([df1,df2],axis='columns')用以连接两个df,中文搜索半天都是些文不对题的答案,还是得科学搜索,墙外出真知。特此记录解决办法:from pyspark.sql.functions import monotonically_increasing_id as miid=mi()df1 = df1.withColumn("match_id", id)cont_data =
2020-12-18 19:30:02
4101
4
原创 安装PS2020出现错误码146
安装PS2020出现错误码146,内容如图,改安装PS2019,仍出现相同错误。解决办法:安装在默认位置,不要自定义安装路径。
2020-11-10 20:04:31
6174
原创 git push origin master 时出现报错 error: src refspec master does not match any error: failed to push some
git push origin master 时出现报错error: src refspec master does not match anyerror: failed to push some refs to网上有很多解决办法试了都没用,最后发现因为当前分支并不是master,而是main导致失败。解决办法:git switch -c master次时已转到master分支,再push即可...
2020-10-28 21:28:57
1473
3
原创 Xmanager 显示pycharm时出现花屏
用Xshell远程使用pycharm,一会不在都掉线了,再登上去pycharm就用不了了,问题状况如图:网上找半天没有解决方案,重启也没用,最后将Xmanager的属性中的窗口模式改为自动侦测再重启解决了这个问题。解决方案应该不通用,但遇到该问题可以试试。...
2020-08-11 15:08:42
538
原创 《Practical Machine Learning A New Look at Anomaly Detection》摘抄+笔记
《Practical Machine LearningA New Look at Anomaly Detection》——实用机器学习, 异常检测的新看法本文照抄论文主要内容加上个人理解,很多地方是翻译是机翻,水平有限,应该有不少语句不通的地方。《实用机器学习,异常检测的新看法》——泰德·邓宁和艾伦·弗里德曼章节:1. 展望未来2.异常检测的形态3.用“t-摘要”...
2019-08-14 22:23:11
1344
原创 【PAT】甲级1002——C语言实现
1002 A+B for Polynomials (25)(25 分)This time, you are supposed to find A+B where A and B are two polynomials.InputEach input file contains one test case. Each case occupies 2 lines, and each line cont...
2018-06-09 15:53:58
2707
原创 【PAT】甲级1001——C语言实现
1001 A+B Format (20)(20 分)Calculate a + b and output the sum in standard format -- that is, the digits must be separated into groups of three by commas (unless there are less than four digits).InputEa...
2018-06-09 15:48:25
1825
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅