摘要: 由于本人使用的是windows 10 操作系统,所以介绍在 windows 10 系统中安装 Anaconda3 的过程。 下载 Anaconda 官网下载地址:https://www.anaconda.com/download/ 点击进入。Anaconda 是跨平台的,有 Windows、macO 阅读全文
posted @ 2018-02-01 20:20 风在人舟 阅读(84643) 评论(3) 推荐(11) 编辑
摘要: covariance(协变):计量经济中的协变差或称协方差;correlation(相关性):指两个数值的相关性,取值一般在-1和+1之间,取0表示不相关,取-1表示负相关,取+1表示正相关。1、协方差是一个用于测量投资组合中某一具体投资项目相对于另一投资项目风险的统计指标,通俗点就是投资组合中两个 阅读全文
posted @ 2018-01-11 20:46 风在人舟 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: In [2]: import numpy as np import pandas as pd In [3]: ser = pd.Series([5,0,3,8,4],index=['red','blue','yellow','white','green']) ser.index In [21]: s 阅读全文
posted @ 2018-01-11 17:21 风在人舟 阅读(466) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import pandas as pd data = {'color':['blue','green','yellow','red','white'],'object':['ball','pen','pencil','paper','mug'],'price':[1.2,1.0,2,2.1,0.5]} frame = pd.DataFrame(data 阅读全文
posted @ 2018-01-10 13:00 风在人舟 阅读(813) 评论(0) 推荐(0) 编辑
摘要: import numpy as np import pandas as pd s = pd.Series([12,-4,4,8]) s Out[4]: 0 12 1 -4 2 4 3 8 dtype: int64 s = pd.Series([12,-4,4,8],index=['a','b','c','d']) s Out[6]: a 12 b ... 阅读全文
posted @ 2018-01-09 21:40 风在人舟 阅读(573) 评论(0) 推荐(0) 编辑
摘要: import numpy as np A = np.array([(1,'First',0.5,1+2j),(2,'Second',1.5,1+3j),(3,'Third',0.8,1-2j)],dtype=('i2,a6,f4,c8')) A Out[3]: array([(1, b'First', 0.5 , 1.+2.j), (2, b'Second',... 阅读全文
posted @ 2018-01-09 17:19 风在人舟 阅读(658) 评论(0) 推荐(0) 编辑
摘要: import requests from lxml import etree import pandas as pd a = requests.get('http://vip.stock.finance.sina.com.cn/q/go.php/vInvestConsult/kind/rzrq/index.phtml') # print(a.status_code) # print(a.tex... 阅读全文
posted @ 2018-01-08 23:30 风在人舟 阅读(2955) 评论(0) 推荐(0) 编辑
摘要: import numpy as np ''' a = np.array([1,2,3]) print(a) print(type(a)) print(a.dtype) # 几行 print(a.ndim) print(a.size) print(a.shape) print(a.data) ''' ''' a = np.array([[1,2,3],[4,5,6]]) b = np.arra... 阅读全文
posted @ 2018-01-08 22:49 风在人舟 阅读(314) 评论(0) 推荐(0) 编辑
摘要: Requests遵循RFC标准,编码使用ISO-8859-1 阅读全文
posted @ 2018-01-05 10:13 风在人舟 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 一、pycharm字体放大的设置 File —> setting —> Keymap —>在搜寻框中输入:increase —> Increase Font Size(双击) —> 在弹出的对话框中选择Add Mouse Shortcut 在弹出的对话框中同时按住ctrl键和鼠标滚轮向上滑。点击OK 阅读全文
posted @ 2018-01-02 20:51 风在人舟 阅读(2093) 评论(0) 推荐(1) 编辑