03 2020 档案
摘要:Series Series这种数据结构类似python中的列表,Series = 列表(value) + 标签(index),是一个一维的数据结构 通过列表构造Series s1 = pd.Series(["a", "b", "c", "d", "e"]) 通过字典构造Series s2 = pd.
阅读全文
摘要:numpy numpy中的数组的数据类型必须全部一致 1.使用np.array创建数组 a = np.array([1, 2, 3, 4]) 2.使用np.arange创建数组 b = np.arange(0, 10) 3.np.random.random创建数组 c = np.random.ran
阅读全文
摘要:DDL(data definition language),数据定义语言常用操作 1.show databases; 2.create database if not exists mydb1 charset=utf8; 3.use mydb1; 4.drop database if exists
阅读全文
摘要:import pymysql # 创建数据库连接 db = pymysql.connect(host="localhost", port=3306, user="root", password="123456", database="stu", charset="utf8") # 创建游标对象 cu
阅读全文
浙公网安备 33010602011771号