0 1 1 0 2 1 3 0 4 1 .. 763 0 764 0 765 0 766 1 767 0 Name: Outcome, Length: 768, dtype: int64 Pregnancies 6.000 Glucose 148.000 BloodPressure 72.000 S ...
分类:
其他好文 时间:
2020-02-29 15:01:20
阅读次数:
122
1.代码1: from pandas import Series,DataFrame from numpy.random import randn import numpy as np import matplotlib.pyplot as plt #随机产生的数值,5组10行,每次打开图形都会变, ...
分类:
编程语言 时间:
2020-02-28 15:59:30
阅读次数:
77
1 ##自选股(代码、日期)合并保存 2 import tushare as ts 3 import pandas as pd 4 ##输入自选股 5 data_list=['600850','603722','002411','002444','002456','300011'] 6 StockP ...
分类:
其他好文 时间:
2020-02-26 17:19:35
阅读次数:
79
代码如下: 1 import matplotlib.pyplot as plt 2 from random import choice 3 class RandomWalk(): 4 def __init__(self,num_points=5000): 5 self.num_points=num_ ...
分类:
编程语言 时间:
2020-02-26 01:44:35
阅读次数:
93
import matplotlib.pyplot as plt import jieba from wordcloud import wordcloud # 1.读出词语 text = open('text/test.txt', 'r', encoding='utf-8').read() print ...
分类:
编程语言 时间:
2020-02-25 19:48:29
阅读次数:
83
import random import math from scipy.stats import norm import matplotlib.pyplot as plt %matplotlib inline def norm_dist_prob(theta): y = norm.pdf(thet ...
分类:
其他好文 时间:
2020-02-24 18:30:59
阅读次数:
56
本文构建宏观基本面因子并使用机器学习方法对中债10年期国债、中债10年期国开债、中债10年期AAA级地方政府债、中债10年期AAA级城投债以及中债10年期AAA级企业债的价格进行定价并建立预测模型。 固定收益证券定价的驱动因素有五个层面,俗称“五碗面”,即基本面、政策面、供求面、资金面、情绪面。五个 ...
分类:
其他好文 时间:
2020-02-24 15:02:54
阅读次数:
92
简介 Matplotlib是一个强大的Python绘图和数据可视化的工具包。 安装方法:pip install matplotlib 导入方法:import matplotlib.pyplot as plt 使用 使用一般有两个步骤 一、绘制图像:plt.plot() 二、显示图像:plt.show ...
分类:
其他好文 时间:
2020-02-22 09:53:02
阅读次数:
98
There are many pionts in this kind of table. How to do it? We can use scatter() to draw it. Code: import matplotlib.pyplot as plt plt.scatter(1,4) plt ...
分类:
其他好文 时间:
2020-02-21 20:30:28
阅读次数:
50
——import matplotlib.pyplot as plt 官方手册 https://matplotlib.org/tutorials/introductory/pyplot.html ——import seaborn as sns 官方手册http://seaborn.pydata.org ...
分类:
编程语言 时间:
2020-02-20 20:16:32
阅读次数:
67