python
楠姐有点忙
数学建模国奖得主|00后保研黑马选手|计算机学院研0|干货资料免费领取
展开
-
Matplotlib 散点图(scatter)
Matplotlib 散点图(scatter) 代码速览 # 导包 import numpy as np import matplotlib.pyplot as plt # 设置中文字符 plt.rcParams['font.sans-serif'] = 'SimHei' plt.rcParams['axes.unicode_minus'] = False data = np.load('./data/国民经济核算季度数据.npz', allow_pickle=True) name = data['co原创 2021-07-13 15:23:24 · 577 阅读 · 0 评论 -
Matplotlib 直方图(hist)
Matplotlib 直方图(hist) 代码速览 import matplotlib.pyplot as plt import numpy as np import matplotlib # 设置matplotlib正常显示中文和负号 matplotlib.rcParams['font.sans-serif']=['SimHei'] # 用黑体显示中文 matplotlib.rcParams['axes.unicode_minus']=False # 正常显示负号 # 随机生成(10000,原创 2021-07-19 09:51:22 · 525 阅读 · 0 评论 -
Python 数据清洗
Python 数据清洗 删除重复数据 遍历 import pandas as pd detail = pd.read_csv('./data/meal_order_detail.csv', index_col=0) # print(detail['dishes_name']) # list1 = list(detail['dishes_name']) print(list1) list2 = [] for i in list1: if i not in list2: list2.原创 2021-07-19 10:15:45 · 205 阅读 · 0 评论