![](https://img-blog.csdnimg.cn/20190918140012416.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
BUG
各种奇怪BUG、Warning的解决方法。
Avasla
好好学习,天天向上。
展开
-
不同数据库的日期类型转换方式(PostgreSql,mysql,SQL Server,Oracle)
不同数据库的日期类型转换方式。原创 2024-05-16 16:09:00 · 243 阅读 · 0 评论 -
ChatGPT检测出使用VPN被屏蔽
记录一下被屏蔽的解决方法。原创 2023-10-27 13:15:42 · 16117 阅读 · 7 评论 -
JSONError(‘Notebook does not appear to be JSON: \‘{\\n “cells“: [\\n {\\n “cell_type“: “m...‘)
JSONError('Notebook does not appear to be JSON: \'{\\n "cells": [\\n {\\n "cell_type": "m...')原创 2023-06-07 10:28:02 · 947 阅读 · 0 评论 -
Windows外接显示器无信号解决方案
Windows 电脑 联想小新笔记本电脑外接显示器无信号解决方法。原创 2022-12-27 21:07:33 · 12904 阅读 · 10 评论 -
nltk报错punkt 缺失 Error Loading Error11004
nltk 文件缺失报错手动下载解决方法原创 2022-12-02 13:04:47 · 775 阅读 · 0 评论 -
打开安装在D盘的MYSQL Server数据库
打开安装在D盘的MYSQL Server数据库原创 2022-11-29 11:09:55 · 1114 阅读 · 1 评论 -
将csv文件插入hive(Python代码)
将csv文件插入hive(Python代码)原创 2022-11-29 10:44:18 · 626 阅读 · 0 评论 -
用 Jupyter Notebook、JupyterLab打开D盘文件
用 Jupyter Notebook、JupyterLab打开D盘文件方法原创 2022-11-17 14:07:04 · 3578 阅读 · 1 评论 -
python将数据透视表pivot_table转为DataFrame 格式
python将数据透视表pivot_table转为DataFrame 格式原创 2022-08-23 17:56:27 · 2999 阅读 · 1 评论 -
Jupyter Notebook 插件 contrib nbextension 安装使用
contrib nbextension 插件使用说明原创 2022-08-10 16:50:16 · 1086 阅读 · 1 评论 -
jupyter notebook 隐藏&显示全部输出内容
jupyter notebook 隐藏和显示 输出内容原创 2022-08-04 19:53:39 · 4748 阅读 · 0 评论 -
python 批量合并CSV文件 & 读取文件夹中多个文件路径(GLOB模块)
glob模块包的应用,包括批量输出多个文件路径,批量合并csv文件原创 2022-05-24 10:39:45 · 796 阅读 · 0 评论 -
Python 重复索引报错 cannot reindex from a duplicate axis 重建索引方法
原因分析:使用df.index.duplicated() 查看是否又重复的索引,若有返回”True“,则表明有重复索引解决方案:删掉原来的索引直接重建新的dataframe.reset_index(drop=True)使用 dataframe.reindex()重新定义所需要的索引值...原创 2022-05-19 14:13:28 · 3582 阅读 · 0 评论 -
Python输入时间范围输出指定格式年月日
start_date, end_date = '2021-1-1', '2021-12-31'dtrange = pd.date_range(start=start_date, end=end_date, freq='d')months = pd.Series(dtrange .month)starts, ends = months.ne(months.shift(1)), months.ne(months.shift(-1))lastmon=months.ne(months.shift(2))原创 2022-03-29 22:08:34 · 2748 阅读 · 0 评论 -
ERROR: Cannot uninstall ‘PyYAML‘. It is a distutils installed project and thus we cannot accurately
pip install --ignore-installed PyYAML先升级原来的pyyaml项目场景:提示:这里简述项目相关背景:例如:项目场景:示例:通过蓝牙芯片(HC-05)与手机 APP 通信,每隔 5s 传输一批传感器数据(不是很大)问题描述:提示:这里描述项目中遇到的问题:例如:数据传输过程中数据不时出现丢失的情况,偶尔会丢失一部分数据APP 中接收数据代码:@Override public void run() { bytes =原创 2022-02-22 10:15:48 · 1700 阅读 · 0 评论 -
【python报错】cannot import name imread from scipy.misc
pdf原创 2020-11-05 12:05:04 · 1558 阅读 · 0 评论 -
【问题解决】NLTK punkt
https://www.nltk.org/data.html资料地址(需要翻墙):https://github.com/nltk/nltk_data/blob/gh-pages/packages/tokenizers/punkt.zip原创 2020-10-17 17:45:23 · 176 阅读 · 0 评论 -
【python 报错】NLTK stopword找不到
问题描述使用NLTK时,出现stopword资源找不到。解决方法在网上找到公开资源,下载文件后,解压到相应地址。解决方法博客链接查看地址路径:from nltk import dataprint(data.path)将下载的文件解压到下面目录里,没有文件夹的新建文件夹:我在解压时候没有这个目录,找到在/Users/mac/opt/anaconda3文件在目录下新建一个nltk_data文件夹;再在nltk_data里建corpora文件夹,将stopword拉进去。过程原创 2020-10-16 16:21:44 · 4039 阅读 · 0 评论 -
Python提取多个docx文本内容
使用docx2txt和正则表达式提取多个docx文本内容,并且将结果合并成DataFrame格式。原创 2020-09-29 11:44:08 · 2054 阅读 · 1 评论 -
【python Error】‘list‘ object has no attribute ‘head‘解决办法,list/dict/dataframe转换
问题描述:AttributeError: ‘list’ object has no attribute ‘head’原因分析:对象是List格式,所以不能用head。方案一:直接提取内容#提取前十个words[:10]#提取第5到第10words[5:10]#从第10个开始提取(要减1)words[9:]方案二:转换pd.DataFrame(list)字典-表格-列表相互转换列表list转字典dict:dict(List)将两列list拼接成字典:1)Dict=原创 2020-09-21 18:23:15 · 17386 阅读 · 0 评论 -
Python提取数据集中的数值变量/分类变量
如何快速提取出数据集里的数值型变量或者分类变量?如何根据数据格式,提取其中一类格式的所有数据?比如提取出数据集中所有float格式的数据。原创 2020-09-12 20:09:26 · 3576 阅读 · 2 评论 -
【python报错】‘float‘ object has no attribute ‘log‘ / loop of ufunc does not support argument 0 of type
AttributeError Traceback (most recent call last)AttributeError: ‘float’ object has no attribute ‘log’TypeError: loop of ufunc does not support argument 0 of type float which has no callable log method原创 2020-09-04 16:22:28 · 9897 阅读 · 0 评论 -
Jupyter找不到已经安装模块解决方法
引用以下代码:import pipdef install(package): pip.main(['install', package])install('模块名称') 来源:https://blog.csdn.net/bolo8956/article/details/80679516因为是MAC的系统,修改了一下安装到pip3原创 2020-05-16 18:38:12 · 4208 阅读 · 4 评论 -
Pyecharts不能导入MAP解决方法
piecharts不能导入Mappip3 install pyecharts==0.1.9.4尝试了在后面加.chart,Map可以导入,但是不能使用,之后的设置全部无用。原创 2020-02-27 14:33:47 · 5808 阅读 · 4 评论 -
matplotlib安装和Pycharm无法显示问题解决方法
安装:pycharm 中 Terminals 输入 pip3 install matplotlib, 完成安装。第一次不成功,多试几次后就可以使用了。接着第二个问题来了,没有显示图片。网上搜索了一些方法试用:1)输入代码plt.show() 图表单独窗口展示2)在设置中找到SciView下的show plots, 找了一圈没找到对应的选项,版本更新后,这个方法不可行。...原创 2020-02-21 17:36:15 · 1987 阅读 · 0 评论 -
MAC苹果系统使用Python问题(更新中)
用来记录mac 学习Python时遇到的问题和找到的解决方法。安装问题:1.入门情况下,只安装python就可以直接使用上手;2.若是要安装pycharm。request 模块导入,需要使用cmd /终端, mac系统下找不到。路径问题:python打开文件时需要用到文件路径,mac系统文件路径如何寻找: Finder(访达)中打开文件位置:...原创 2020-02-27 10:59:47 · 1643 阅读 · 0 评论