上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 21 下一页
摘要: 上面代码执行处做,Assertion Error 解决方案: This may help for someone who is looking for For Anaconda on Windows 10 64 Bit, Environment: Windows 10 64 Bit, Python 阅读全文
posted @ 2018-12-30 11:08 andy_0212 阅读(718) 评论(0) 推荐(0)
摘要: pip list pip freeze pip show <module_name> pip search <module_name> How to know if a python module is installed or not in the system: You can do a ver 阅读全文
posted @ 2018-12-29 22:03 andy_0212 阅读(852) 评论(0) 推荐(0)
摘要: 文件名全小写,可使用下划线 包应该是简短的、小写的名字。如果下划线可以改善可读性可以加入。如mypackage。 模块与包的规范同。如mymodule。 类总是使用首字母大写单词串。如MyClass。内部类可以使用额外的前导下划线。 函数&方法函数名应该为小写,可以用下划线风格单词以增加可读性。如: 阅读全文
posted @ 2018-12-29 15:28 andy_0212 阅读(129) 评论(0) 推荐(0)
摘要: dataframe获取series是副本,改变series的值并不能改变dataframe中的值 >>> x_column0 11 22 4 >>> df x y0 1 4 阅读全文
posted @ 2018-12-28 16:55 andy_0212 阅读(287) 评论(0) 推荐(0)
摘要: https://www.tensorflow.org/install/pip 装了tensorflow-gpu后,运行程序会出现“Your CPU supports instructions that this TensorFlow binary was not compiled to use: A 阅读全文
posted @ 2018-12-28 09:11 andy_0212 阅读(411) 评论(0) 推荐(0)
摘要: 0.反转 s[::-1] s.reverse() > will change s, return none reversed(s) > return iterator 1、去空格及特殊符号 s.strip() s.lstrip() s.rstrip(',') 2、复制字符串 复制代码代码如下: #s 阅读全文
posted @ 2018-12-26 16:50 andy_0212 阅读(169) 评论(0) 推荐(0)
摘要: LEGB Local>External>Global>Built-in https://www.datacamp.com/community/tutorials/scope-of-variables-python#diff n this tutorial, you will learn about 阅读全文
posted @ 2018-12-26 16:48 andy_0212 阅读(203) 评论(0) 推荐(0)
摘要: FFT前言快速傅里叶变换 (fast Fourier transform),即利用计算机计算离散傅里叶变换(DFT)的高效、快速计算方法的统称,简称FFT。快速傅里叶变换是1965年由J.W.库利和T.W.图基提出的。采用这种算法能使计算机计算离散傅里叶变换所需要的乘法次数大为减少,特别是被变换的抽 阅读全文
posted @ 2018-12-26 11:38 andy_0212 阅读(2337) 评论(0) 推荐(0)
摘要: pip install swifter import swifter df.swifter.apply() df.swifter.transform() Easily apply any function to a pandas dataframe in the fastest available 阅读全文
posted @ 2018-12-26 11:32 andy_0212 阅读(471) 评论(0) 推荐(0)
摘要: https://stackoverflow.com/questions/12735392/python-class-static-methods You're getting the error because you're taking a self argument in each of tho 阅读全文
posted @ 2018-12-20 14:50 andy_0212 阅读(170) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 21 下一页