会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Loading
lixin_blog
首页
新随笔
管理
上一页
1
2
3
4
5
6
7
8
下一页
2020年12月2日
datetime模块
摘要: 导入 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)
2020年11月28日
pandas模块
摘要: 导入模块 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就是可以直接使用的命令 并在git bash中设置用户信息 git config --global user.name "用户名" git config --global user.email "用户邮箱" 创建
阅读全文
posted @ 2020-11-28 14:23 lixin2020
阅读(134)
评论(0)
推荐(0)
2020年11月26日
csv模块
摘要: 导入 import csv 函数 file = csv.reader() #返回一个以行为元素的迭代器用于遍历 这种方法比使用open更好,其可以直接按照行对csv文件分段 但可能会损失精度 最好使用pandas中pd.read_csv()来进行读取
阅读全文
posted @ 2020-11-26 16:38 lixin2020
阅读(83)
评论(0)
推荐(0)
time模块
摘要: 导入 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)
SQL server - 导入外部文件
摘要: 导入mdf以及ldf文件 需要安装SQL server以及其对应的操作工具 EXEC sp_attach_db @dbname = '12345', @filename1 = '你的.mdf路径', @filename2 = '你的.ldf路径'
阅读全文
posted @ 2020-11-26 11:01 lixin2020
阅读(215)
评论(0)
推荐(0)
2020年11月25日
Linux-基本操作
摘要: Linux 启动顺序 内核引导 通常从磁盘启动,然后读入/boot目录下的内核文件 运行init init进程为所有进程的初始进程,首先要读取配置文件/etc/inittab init进程用于管理需要开机启动的程序,称之为“守护进程” 对于不同的运行级别,会有不同的开机启动程序(启动为桌面是其中一种
阅读全文
posted @ 2020-11-25 21:49 lixin2020
阅读(142)
评论(0)
推荐(0)
matplotlib.pyplot模块-图像布局
摘要: 导入 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)
MySQL-子查询及连接
摘要: 子查询 在已有的查询结果进一步查询(也就是在select语句中嵌套)
阅读全文
posted @ 2020-11-25 21:17 lixin2020
阅读(75)
评论(0)
推荐(0)
2020年11月23日
MySQL-简单查询
摘要: 开启和关闭 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)
上一页
1
2
3
4
5
6
7
8
下一页
公告