02 2017 档案

python numpy 判断ndarray 中是否有 nan
摘要:下面讨论了哪一种方法的速度最快 reference: stackoverflow.com/questions/911871/detect-if-a-numpy-array-contains-at-least-one-non-numeric-value 阅读全文

posted @ 2017-02-05 19:08 norsd 阅读(13981) 评论(0) 推荐(0) 编辑

matplotlib.pyplot import报错: ValueError: _getfullpathname: embedded null character in path
摘要:Environment: Windows 10, Anaconda 3.6 matplotlib 2.0 import matplotlib.pyplot 报错: ValueError: _getfullpathname: embedded null character in path 原因以及So 阅读全文

posted @ 2017-02-04 17:14 norsd 阅读(2686) 评论(0) 推荐(0) 编辑

python format
摘要:http://blog.xiayf.cn/2013/01/26/python-string-format/ https://zerokspot.com/weblog/2015/12/31/new-string-formatting-in-python/ 阅读全文

posted @ 2017-02-02 17:12 norsd 阅读(183) 评论(0) 推荐(0) 编辑

python 关于时区
摘要:pytz提供了时区对象timezone 如果我们如此使用: 我们得到的时间不是 GMT+8, 而是8小时又6分钟 我们需要的是CST时间, 所以可以用如下代码: 这样得到就是准确的 GMT+8 http://www.keakon.net/2010/12/14/%E7%94%A8datetime%E5 阅读全文

posted @ 2017-02-02 15:35 norsd 阅读(1615) 评论(0) 推荐(0) 编辑

pyMongo 一些基本操作
摘要:1. find() 函数, 可以在函数体内直接指定 filter, sort, projection(限制field), 语法如下: datas = col.find( filter = {"$and":[{"_id":{"$gte":datetime.datetime(2017, 1, 20)}} 阅读全文

posted @ 2017-02-01 14:49 norsd 阅读(2538) 评论(0) 推荐(0) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示