
python
Keyboard Interrupt
github: https://github.com/ScottPanIE
展开
-
pandas 1.0翻译与部分理解
CONTENTAbstractPandas 1.0.0 What's New?New Deprecation PolicyEnhancementsUsing Numba in rolling.apply and expanding.applyDefining custom windows for rolling operationsConverting to MarkdownExperimental New FeaturesExperimental NA scalar to denote missing v原创 2020-07-16 11:36:15 · 890 阅读 · 0 评论 -
Intel MTK FATAL ERROR解决方法
装TensorFlow和Sci-Kit Learn的时候碰到了numpy的版本问题,导致了如下ERROR,于是去搜索了一下具体原因和解决方法 如下图anaconda文档描述,MKL全称是Math Kernel Library,是用来处理计算的。受影响的packages有Numpy, NumExpr, SciPy, Sci-Kit Learn。但是呢,如果电脑上没有装Intel MKL这个东西的话,就无法使用MKL,而相关的python packages当然也无法使用啦。 网上查到的普遍方法如下: con原创 2020-07-13 14:05:37 · 400 阅读 · 0 评论 -
Python鸭子类型 duck typing
鸭子类型鸭子类型(Duck Typing)定义代码样例code & expected outputCriticismHow to Handle it in Python?LBYL(Look Before You Leap)EAFP(Easier to Ask for Forgiveness than Permission)两类原则对比代码效率代码易读性代码风险两种风格存在的必要结论协议(让Python这种动态类型语言实现多态的方式) 鸭子类型(Duck Typing) 在翻看fluent pytho原创 2020-06-10 15:55:40 · 580 阅读 · 0 评论