Loading

摘要: 导入 import datetime date类 可以构成date对象,使用其属性和方法 datetime.date(year, month, day) # 以上则构成了一个date类对应的date对象 date.max、date.min #date对象所能表示的最大、最小日期 date.resol 阅读全文
posted @ 2020-12-02 14:13 lixin2020 阅读(183) 评论(0) 推荐(0)
摘要: 导入模块 import pandas as pd 数据类型 df.dtypes # 查看数据类型 df["Customer Number"] = df["Customer Number"].astype("int") # 使用astype函数就可以转换数据类型 # 传入的参数为一个字符串# 数据导入 阅读全文
posted @ 2020-11-28 21:52 lixin2020 阅读(152) 评论(0) 推荐(0)
摘要: Git 本地仓库 环境搭建 安装Git,同时配置环境变量以在控制台中直接使用,此时Git就是可以直接使用的命令 并在git bash中设置用户信息 git config --global user.name "用户名" git config --global user.email "用户邮箱" 创建 阅读全文
posted @ 2020-11-28 14:23 lixin2020 阅读(134) 评论(0) 推荐(0)
摘要: 导入 import csv 函数 file = csv.reader() #返回一个以行为元素的迭代器用于遍历 这种方法比使用open更好,其可以直接按照行对csv文件分段 但可能会损失精度 最好使用pandas中pd.read_csv()来进行读取 阅读全文
posted @ 2020-11-26 16:38 lixin2020 阅读(83) 评论(0) 推荐(0)
摘要: 导入 import time 包含了三种时间格式 timestamp时间戳,即1970年1月1日00:00:00开始按秒计算的偏移量 struct_time时间元组,由九个元素组成 (在pandas模块中,其可以直接识别struct_time,所以将其转换为时间元组即可) 属性 值 tm_year( 阅读全文
posted @ 2020-11-26 16:28 lixin2020 阅读(116) 评论(0) 推荐(0)
摘要: 导入mdf以及ldf文件 需要安装SQL server以及其对应的操作工具 EXEC sp_attach_db @dbname = '12345', @filename1 = '你的.mdf路径', @filename2 = '你的.ldf路径' 阅读全文
posted @ 2020-11-26 11:01 lixin2020 阅读(215) 评论(0) 推荐(0)
摘要: Linux 启动顺序 内核引导 通常从磁盘启动,然后读入/boot目录下的内核文件 运行init init进程为所有进程的初始进程,首先要读取配置文件/etc/inittab init进程用于管理需要开机启动的程序,称之为“守护进程” 对于不同的运行级别,会有不同的开机启动程序(启动为桌面是其中一种 阅读全文
posted @ 2020-11-25 21:49 lixin2020 阅读(142) 评论(0) 推荐(0)
摘要: 导入 import matplotlib.pyplot as plt导入 文本注释 matplotlib.pyplot.annotate(text, xy, *args, **kwargs) 数据: text str 指定注释点的位置: xy (float, float) The point (x, 阅读全文
posted @ 2020-11-25 21:21 lixin2020 阅读(774) 评论(0) 推荐(0)
摘要: 子查询 在已有的查询结果进一步查询(也就是在select语句中嵌套) 阅读全文
posted @ 2020-11-25 21:17 lixin2020 阅读(75) 评论(0) 推荐(0)
摘要: 开启和关闭 mysql -uroot -p3306 -p 使用如上,输入用户名及端口号,然后输入密码即可完成用户登录 再键入exit即可退出 Linux系统中进行如下操作 service mysql start service mysql stop service mysql restart 检查是 阅读全文
posted @ 2020-11-23 18:46 lixin2020 阅读(205) 评论(0) 推荐(0)