
python
waterbridge7
这个作者很懒,什么都没留下…
展开
-
Python scatter_matrix子坐标控制
df = DataFrame(np.random.randn(1000, 2), columns=['A','B'])sm = scatter_matrix(df, alpha=0.2)for subaxis in sm: for ax in subaxis: ax.xaxis.set_ticks([-2,2]) ax.yaxis原创 2016-07-27 10:07:37 · 1807 阅读 · 0 评论 -
parallel python (pp) Python 中job_server.submit设置的例子
import ppimport numpy as npfrom sklearn.gaussian_process import GaussianProcessRegressorclass AA(object): def __init__(self): self.x = 'test' def b(x): np = numpy #重点原创 2017-11-01 15:14:04 · 1045 阅读 · 0 评论 -
import自定义函数中,python2 和python3的不同
一种情况:假如你有一个脚本函数a.py和b.py存放在file文件夹中。当你想调用a函数时。写作:import file.a。但如果a.py需要调用b.py函数的话,在python2环境下a.py文件中直接用import b即可。但python3文件中a.py要调用b文件需要改写成import file.b。否则会出现no module named b原创 2017-08-02 12:00:15 · 1295 阅读 · 0 评论 -
特征选取的几篇好博客
http://dataunion.org/14072.htmlhttp://www.itdadao.com/articles/c15a827897p0.html转载 2017-02-23 10:45:35 · 302 阅读 · 0 评论 -
python 使用plt的一些注意事项
plt.show() # show figureplt.close() # close the current figure原创 2017-01-10 15:34:17 · 8045 阅读 · 0 评论 -
python 读取 matalb .mat 文件
import matlab.engineimprot numpy as npeng = matlab.engine.start_matlab()content = eng.load("example.mat",nargout=1)z = np.array(content.values()[0])原创 2016-11-15 09:52:57 · 472 阅读 · 0 评论 -
量化投资实习得到的知识
远程登录服务器方面:1, ssh [username@company.com] / ssh -p [port] [username@localhost]远程数据传输方面:1, scp -P[port] [username@localhost]:~/文件夹/文件名 ~/数据库方面:1, mysql -h 177.00.000.00 -P [port] -u work -p #远程原创 2016-11-07 11:10:30 · 3469 阅读 · 0 评论 -
Python 网络数据采集——较好的资源
正在忙着学爬虫,找了一些资料发现两个比较好的资源:1. http://cuiqingcai.com/category/technique/python 崔庆才的博客2. 其实也是他介绍的 http://docs.pyspider.org/en/latest/Frequently-Asked-Questions/原创 2016-08-30 22:23:49 · 373 阅读 · 0 评论 -
Python 常用经验总结
每一个python 版本有自己的pip 确定访问正确的pip才能使 库安装到对应的python 中 ——c:Users\admin\Anaconda\python \Users\admin\Anaconda\Scripts\pip.exe install numpy从网站上下载的scipy.whl包,需要使用同网站下载的numpy.whl包。不可以用不同来源的包,不兼容3.原创 2016-07-21 18:48:44 · 368 阅读 · 0 评论 -
python windows 下 pp模块 ‘TASKKILL'不是内部或外部命令,也不是可运行的程序或批处理文件 的解决方案
https://www.parallelpython.com/component/option,com_smf/Itemid,1/topic,786.0Hi,Just a brief note. PP works well with pypy (on Windows), however on shutdown, you get (harmless) failure message转载 2017-11-27 12:31:54 · 4957 阅读 · 0 评论