![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
学习笔记
文章平均质量分 50
谁抢了默默的冬瓜
这个作者很懒,什么都没留下…
展开
-
pandas将两列字符串拼接到一起组成新的一列
项目场景:在我的日常工作中需要经常处理时间,例如需要将2022年1月16日8时处理成2022011608,或各种格式,但遇到的文件通常五花八门,其中有一个场景是年月日和时分开,或年月日时本身是分开,这就需要将它们拼接到一起。如要把date和hour列拼到一起。问题描述:提示:这里描述项目中遇到的问题:例如:数据传输过程中数据不时出现丢失的情况,偶尔会丢失一部分数据APP 中接收数据代码:@Override public void run() { byt原创 2022-01-23 07:54:47 · 15106 阅读 · 0 评论 -
输出错误:TypeError: must be real number, not str
输出错误:TypeError: must be real number, not str在运行以下代码时显示错误: fo = open(outName,"w") head1 = "diamond 3 "+date+hour+dataInfo+"\n" head2 = yy+" "+month+" "+day+" "+hour+"原创 2018-10-18 20:31:20 · 59221 阅读 · 2 评论 -
pandas读取CSV文件时出现警告:Columns (4) have mixed types. Specify dtype option on import or set low_memory
如题:pandas读取CSV文件时出现警告: DtypeWarning: Columns (4) have mixed types. Specify dtype option on import or set low_memory=False.网上搜了一下发言已经有人很好的解决,并且解释得很清楚,这里推荐给大家:https://www.jianshu.com/p/a70554726f26引用作...转载 2019-01-03 22:12:09 · 6369 阅读 · 0 评论