摘要: 1 import random 2 import matplotlib.pyplot as plt 3 4 5 # 掷硬币,头0,花1 6 def toss(): 7 return random.randint(0, 1) 8 9 10 if __name__ == "__main__": 11 1 阅读全文
posted @ 2020-12-14 23:31 止一 阅读(89) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-14 23:21 止一 阅读(69) 评论(0) 推荐(0) 编辑
摘要: 1 from collections import Counter 2 from math import sqrt 3 4 def frequency(data): 5 """频率""" 6 counter = Counter(data) 7 ret = [] 8 for point in coun 阅读全文
posted @ 2020-12-14 23:08 止一 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 1.数据的可靠性和有效性 2.利用图表对数据进行可视化 2.1分类变量的可视化 2.11无序分类变量 2.12有序分类变量的可视化 2.1数值变量的可视化 数据的分布 阅读全文
posted @ 2020-12-14 22:24 止一 阅读(396) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2020-12-14 21:05 止一 阅读(33) 评论(0) 推荐(0) 编辑