11 2020 档案
摘要:数据的筛选 # 列的筛选 df.column_name df['column_name'] # 行的筛选 df.loc[condition,:] # 行列的筛选 df.loc[condition,:colunm_list] # example sec_buildings.size sec_build
阅读全文
摘要:外部数据的读取 文本文件的读取 Example # 文本文件的读取 import pandas as pd text = pd.read_csv('data_test01.txt', sep=',', names=['序号', '出生年', '月份', '日期', '性别', '职位', '薪资']
阅读全文
摘要:数据分析 数组的构造 一维数组 # 导入第三方模块 import numpy as np # 将列表转换为数组进行计算 Height = np.array(height) Weight = np.array(weight) BMI = Weight/(Height/100)**2 age = np.
阅读全文

浙公网安备 33010602011771号