随笔分类 - Python Data Visualization Cookbook
摘要:1 import numpy as np 2 import matplotlib.pyplot as plt 3 4 5 def is_outlier(points, threshold=3.5): 6 if len(points.shape) == 1: 7 points = points[:, None] 8 9 # Find the ...
阅读全文
摘要:1 import csv 2 3 filename = 'ch02-data.csv' 4 data = [] 5 6 try: 7 with open(filename) as f://用with语句将数据文件绑定到对象f 8 reader = csv.reader(f) 9 header = next(reader)//Pytho...
阅读全文

浙公网安备 33010602011771号