自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(5)
  • 收藏
  • 关注

原创 词云/word cloud

%matplotlib inline import numpy as np import pandas as pd import matplotlib.pyplot as plt Word Cloud for English from wordcloud import WordCloud, STOPWORDS with open(‘hertz.txt’) as f: data = f.read()...

2020-03-14 21:34:56 215

原创 正态分布展示和中心极限定理证明 / Show Normal Distribution and Proof of the Center Limit Theory

import numpy as np import matplotlib.pyplot as plt import math #Show Normal Distribution/正态分布展示 def demo1(sample_number): mu ,sigma = 0, 1 np.random.seed(0) s = np.random.normal(mu, sigma, sample_numb...

2020-03-14 21:25:52 266 1

原创 超市经营数据分析

Analysing the data from a supermarket Import the data 导入数据 import pandas as pd import matplotlib.pyplot as plt get_ipython().run_line_magic(‘matplotlib’, ‘inline’) data = pd.read_csv(‘order143.csv’) d...

2020-01-13 15:37:33 737

原创 Fibonacci数列模块

#背景介绍 Fibonacci数列与以下概念相关: 1.黄金分割 2.递归算法 3.自然现象 #程序代码 -- coding: utf-8 -- “”" Created on Tue Jan 7 10:32:48 2020 @author: James “”" def fibo(n): if n <= 1: return n else: return(fibo(n-1)+f...

2020-01-13 10:08:19 116

原创 我的第一个模块: 不同温度单位转换

背景介绍 现在世界上主要有三种温度单位, 开尔文(kelvin),摄氏度(celsius) 和 华氏度(fahrenheit)。 程序代码 -- coding: utf-8 -- “”" Created on Wed Jan 8 14:30:46 2020 @author: James “”" ‘’’ Conversion between different temperature scales...

2020-01-12 20:04:36 688

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除