摘要: where 子句中不要使用 != 或 <> 对 where , order by 操作会涉及到的列上建立索引 在 where 子句中不要对字段进行 null 值判断 将可能出现空值的列设置为 0 在查询时,可以通过 select 字段 from 表名 where 另一个字段=0 在 where 子句 阅读全文
posted @ 2021-10-06 16:02 CodeYaSuo 阅读(36) 评论(0) 推荐(0) 编辑
摘要: index = False,header = None,sep = '\t' 阅读全文
posted @ 2021-10-06 14:35 CodeYaSuo 阅读(355) 评论(0) 推荐(0) 编辑
摘要: 前提 安装 tabulate 库 pip install tabulate 不然会在调用 df.to_markdown() 时报错 Missing optional dependency 'tabulate'. Use pip or conda to install tabulate. df.to_ 阅读全文
posted @ 2021-10-06 14:33 CodeYaSuo 阅读(347) 评论(0) 推荐(0) 编辑
摘要: untitled.txt 文本内容 One I have a car. Two My name is Hany. df = pd.read_table('untitled.txt',sep=' \-\-\-\- ',engine = 'python',header = None) 注:其中的 seq 阅读全文
posted @ 2021-10-06 14:23 CodeYaSuo 阅读(250) 评论(0) 推荐(0) 编辑
摘要: header 表示将第几行设置为列名 header = None header = 3 index_col 表示将某一列或某几列作为索引 index_col = ['a'] index_col = ['a','b'] usecols 表示读取哪一列 不设置为默认读取全部列 usecols = ['a 阅读全文
posted @ 2021-10-06 14:12 CodeYaSuo 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2021-10-06 13:58 CodeYaSuo 阅读(106) 评论(0) 推荐(0) 编辑
摘要: np.array 对象 调用 cumprod 可以实现累乘效果 调用 cumsum 可以实现累加效果 调用 np.diff 查看后一个与前一个的差值 阅读全文
posted @ 2021-10-06 13:45 CodeYaSuo 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 在我电脑上面的解决方案为 pip install pyzmq==19.0.2 再重新在 cmd 下输入 jupyter notebook 就可以运行与保存了。 阅读全文
posted @ 2021-10-06 13:39 CodeYaSuo 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 知乎:数据分析资料汇总 tkinter SciPy Numpy Numpy中文网 The Python Graph Gallery MegEngine 1.6 文档 Matplotlib 3.4.3 Pandas Pandas必会的方法汇总 Seaborn 0.11.2 Seaborn 0.9 中文 阅读全文
posted @ 2021-10-06 12:12 CodeYaSuo 阅读(621) 评论(0) 推荐(0) 编辑
摘要: git clone 慢,使用镜像 https://www.cnblogs.com/hany-postq473111315/p/15370803.html 从B站看到的资源网站(确实是很不错,推荐!) https://www.cnblogs.com/hany-postq473111315/p/1536 阅读全文
posted @ 2021-10-06 11:27 CodeYaSuo 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 使用的方式:在前面加上 git clone https://github.com.cnpmjs.org/ 例如:我们要 git clone 的 git 链接为 git clone https://github.com/libratbag/piper.git 我们在终端需要进行输入的为 git clo 阅读全文
posted @ 2021-10-06 11:15 CodeYaSuo 阅读(502) 评论(0) 推荐(0) 编辑