摘要:
阅读全文
posted @ 2020-03-20 16:52
Bambo0
阅读(113)
评论(0)
推荐(0)
摘要:
分析250条电影数据的类型数量分布# coding = utf-8import pandas as pdimport numpy as npfrom matplotlib import pyplot as pltfrom matplotlib import font_managermy_font = 阅读全文
posted @ 2020-03-20 14:44
Bambo0
阅读(635)
评论(0)
推荐(0)
摘要:
# coding = utf-8# encoding:utf-8import reimport sysfrom collections import OrderedDictimport pandas as pdimport requestsfrom bs4 import BeautifulSoup# 阅读全文
posted @ 2020-03-20 14:39
Bambo0
阅读(291)
评论(0)
推荐(0)
摘要:
# coding = utf-8import numpy as npdef nan_fill(a): for i in range(a.shape[1]): temp_col = a[:, i] count_col_nan = np.count_nonzero(temp_col == temp_co 阅读全文
posted @ 2020-03-20 14:36
Bambo0
阅读(1219)
评论(0)
推荐(0)
摘要:
四部电影三天内的票房统计# coding=utf-8from matplotlib import pyplot as pltfrom matplotlib import font_managermy_font = font_manager.FontProperties(fname='C:/Windo 阅读全文
posted @ 2020-03-20 14:34
Bambo0
阅读(115)
评论(0)
推荐(0)
摘要:
# coding = utf-8from matplotlib import pyplot as pltimport randomfrom matplotlib import font_managerimport matplotlib#matplotlib设置字体#法一:适用于windows/lin 阅读全文
posted @ 2020-03-20 14:32
Bambo0
阅读(811)
评论(0)
推荐(0)
摘要:
# coding=utf-8from matplotlib import pyplot as pltx = range(2,26,2)y = [15,13,14.5,17,20,25,26,26,24,22,18,15]fig = plt.figure(figsize=(20,8),dpi=80)# 阅读全文
posted @ 2020-03-20 14:28
Bambo0
阅读(189)
评论(0)
推荐(0)
摘要:
from matplotlib import pyplot as pltinterval = [0, 5, 10, 15, 20, 25, 30, 35, 40, 45, 60, 90] # 时间width = [5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 15, 30, 阅读全文
posted @ 2020-03-20 14:25
Bambo0
阅读(450)
评论(0)
推荐(0)
摘要:
# coding = utf-8from matplotlib import pyplot as pltimport randomy = [random.randint(90, 181) for i in range(250)] #随机生成250个大小在90-180的数字列表bin_width = 阅读全文
posted @ 2020-03-20 14:23
Bambo0
阅读(1172)
评论(0)
推荐(0)
摘要:
def __init__(self, url, start_page, pages, page_size): """ 初始化 @param url: 爬取主网址 @param start_page: 起始页码 @param pages: 总页码(截止页码) @param page_size: 每页的 阅读全文
posted @ 2020-03-20 14:18
Bambo0
阅读(357)
评论(0)
推荐(0)
摘要:
pd.set_option('display.float_format',lambda x: '%.2f'%x) pd.set_option('display.expand_frame_repr',False) #显示所有列 pd.set_option('display.max_columns', 阅读全文
posted @ 2020-03-20 14:16
Bambo0
阅读(1699)
评论(0)
推荐(0)

浙公网安备 33010602011771号