sh 康达

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 康达相关的知识,希望对你有一定的参考价值。

import tushare as ts

frame = ts.get_growth_data(2016,2)
frame1 = frame.set_index('name')

frame1 = frame1[frame1.nav.gt(15)]
frame1 = frame1[frame1.nav.lt(100)]

frame1 = frame1[frame1.nprg.gt(50)]
frame1 = frame1[frame1.nprg.lt(100)]

frame1 = frame1[frame1.mbrg.gt(50)]
frame1 = frame1[frame1.mbrg.lt(100)]

q = frame1[['nprg', 'nav', 'mbrg']]
q.plot()

zhfont1 = fm.FontProperties(fname='cfc-list | grep -i cn')
yticks(arange(len(q)) + 0.13, q.index, rotation=30, fontproperties=zhfont1)
wget -c https://repo.continuum.io/archive/Anaconda2-4.2.0-Linux-x86_64.sh
sh Anaconda2-4.2.0-Linux-x86_64.sh
./conda --version
export http_proxys=127.0.0.1:7000
./conda create -vv -n mystock python=2.7 numpy pandas matplotlib ipython scipy
source activate mystock

(mystock) [nemo.zhang@cws71 bin]$ ipython --pylab
Python 2.7.12 |Continuum Analytics, Inc.| (default, Jul  2 2016, 17:42:40) 
Type "copyright", "credits" or "license" for more information.

IPython 5.1.0 -- An enhanced Interactive Python.
?         -> Introduction and overview of IPython's features.
%quickref -> Quick reference.
help      -> Python's own help system.
object?   -> Details about 'object', use 'object??' for extra details.
/home/nemo.zhang/anaconda2/envs/mystock/lib/python2.7/site-packages/matplotlib/font_manager.py:273: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  warnings.warn('Matplotlib is building the font cache using fc-list. This may take a moment.')
Using matplotlib backend: Qt5Agg

In [1]: plot(arange(10)
   ...: )
Out[1]: [<matplotlib.lines.Line2D at 0x7efdb2fce250>]




conda install -n mystock lxml requests
pip install tushare



以上是关于sh 康达的主要内容,如果未能解决你的问题,请参考以下文章

如何运行康达?

康达, 康迪, 康德, 康杜

如何卸载迷你康达? Python

康达激活不起作用?

text 康达

markdown 康达相关指令