![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据库
浪_沏沙
为了python,为了机器学习,为了深度学习。
展开
-
mongodb日期字段string转ISODate
方法一:var cursor = db.Clinical_laboratory_center_data.find({"article_detial.Registration.Date_of_Last_Refreshed_on": {"$exists": true, "$type": 2 }}); while (cursor.hasNext()) { var doc = cursor.n...翻译 2018-05-31 17:15:32 · 10944 阅读 · 0 评论 -
pandas之to_sql
今天写一个mysql的自动化脚本,遇见了一些问题,最终折腾了很久终于搞定了。python3.6,在使用pandas处理dataframe,写入数据库用了to_sql,数据库的连接不能使用pymysql的connect。于是选择了sqlalchemy得create_engine。在data.to_sql("mytable",conn,index=False)的时候提示没有mysqldb,查了...原创 2018-07-19 20:54:01 · 5944 阅读 · 0 评论