- 博客(12)
- 收藏
- 关注
原创 LaTeX加粗的坑,\bm、\boldmath、\boldsymbol、\mathbf不加粗,乱码,报错
LaTeX加粗的坑,\bm、\boldmath、\boldsymbol、\mathbf不加粗,乱码,报错
2022-08-16 22:53:25
29638
3
原创 On Windows machines everything in your script must be inside of an if __name__ == ‘__main__‘: block
在 Windows 机器上,脚本中的所有内容都必须位于 if _ _ name _ _ = =’_ _ main _ _’: 块中,这样多进程才能工作。在 Windows 上的 python 中使用多处理时,需要保护程序的入口点。
2022-06-28 11:10:58
385
转载 Matplotlib 系列:colorbar 的设置
转载于:Matplotlib 系列:colorbar 的设置该文为我很及时的解决了我的烦恼,再次向作者致意~作者一直在持续更新python系列,请支持原作者,文章来源:炸鸡人博客0. 前言承接 Matplotlib 系列:colormap 的设置 一文,这次介绍 colorbar。所谓 colorbar 即主图旁一个长条状的小图,能够辅助表示主图中 colormap 的颜色组成和颜色与数值的对应关系。本文将会依次介绍 colorbar 的基本用法、如何设置刻度,以及怎么为组图添加 colorbar。
2021-12-09 16:50:46
99941
11
原创 JupyterLab Windows 桌面版无法运行错误:jupyterlab_app Environment not found at: C:\JupyterLab\resources\jlab_s
JupyterLab Windows 桌面版无法运行打开软件跳出错误:jupyterlab_app Environment not found at: C:\JupyterLab\resources\jlab_server\python.exe软件主界面显示“Jupyter Server Not Found”Jupyter 家族的新成员——JupyterLab 桌面版JupyterLab 桌面版适用于Linux、macOS 和 Windows 操作系统,每个平台都提供一键安装程序。程序下载地址
2021-09-28 20:47:48
771
原创 Python错误篇 | UserWarning: findfont: Font family [‘SimHei‘] not found. Falling back to DejaVu Sans.
matplotlib中文显示问题的解决方案matplotlib运行时出现错误:UserWarning: findfont: Font family [‘SimHei‘] not found. Falling back to DejaVu Sa或者RuntimeWarning: Glyph 20998 missing from current font.错误RuntimeWarning: Glyph xxxxx missing from current font的产生原因解析,检测当前字体是否包含某
2021-09-08 01:07:48
7936
1
原创 LAS文件中的时间戳gps_time到底是什么时间?计算原理及时间转换
LAS文件中规定的时间gps_timeLAS格式中文说明 - 豆丁网https://www.docin.com/p-593004989.htmlLAS格式1.3中有规定,见图:The meaning of GPS Time in the Point Records0(not set)->GPS time in the point record fields is GPS Week Time(the same as previous versions of LAS)1(set)->GPS
2021-08-16 00:01:09
2387
原创 spark.SparkException: Python worker failed to connect back.执行 spark 操作时 Python 工作线程无法连接回
SparkException:执行 spark 操作时 Python 工作线程无法连接回spark.SparkException: Python worker failed to connect back.问问题当我尝试在 pyspark 执行此命令行时from pyspark import SparkConf, SparkContext# 创建SparkConf和SparkContextconf = SparkConf().setMaster("local").setAppName("lic
2021-08-12 16:58:22
4002
6
转载 方法解析顺序(MRO)
转载自(https://www.jianshu.com/u/5e6f798c903a)转载须注明出处:简书@Orca_J35可参考另外两则笔记:调用父类中的方法 | super()方法解析顺序(Method Resolution Order - MRO),是一种在多重继承中用于确定方法搜索顺序的算法,又称 C3 超类线性化(superclass linearization)。Python 会计算出每一个类的 MRO 列表。一个类的 MRO 列表是一个包含了其继承链上所有基类的线性顺序列,并且列表中
2021-08-12 10:45:05
201
原创 TypeError: Cannot create a consistent method resolution order (MRO) for bases object, JavaModel, Jav
错误代码错误:TypeError: Cannot create a consistent method resolution order (MRO) for bases object, JavaModel, JavaPredictionModel, JavaMLWritable, XGBoostReadable错误程序import numpy as npimport pandas as pdimport osimport refrom sklearn import metricsimport
2021-08-12 10:40:42
3096
1
转载 在 Pyspark 中使用 xgboost 会导致 ImportError: cannot import name ‘JavaPredictionModel‘
我看到了一篇关于数据科学的很棒的文章,标题是PySpark ML 和 XGBoost 完全集成在 Kaggle Titanic 数据集上进行了测试,其中作者介绍了 pyspark 中 xgboost 的用例。我试图按照这些步骤操作,但遇到了 ImportError。安装我已经从 Maven 下载了两个 jar 文件,并将它们放在我的笔记本所在的同一目录中。xgboost4j 版本 0.72xgboost4j-spark 版本 0.72我还下载了xgboost 包装文件 sparkxgb.zi
2021-08-12 00:43:55
947
原创 Could not fetch URL https://mirrors.aliyun.com: a problem confirming the ssl certificate
错误发生介绍:阿里云服务器安装库文件总是提醒无法连接镜像地址:Could not fetch URL https://mirrors.aliyun.com/pypi/simple/lxml/: There was a problem confirming the ssl certificate: HTTPSConnectionPool(host=‘mirrors.aliyun.com’, port=443)以及Caused by SSLError(“Can’t connect to HTTPS URL
2021-03-18 16:35:24
3352
转载 解决python中出现的不可见字符问题,OSError: [Errno 22] Invalid argument: ‘\u202a**.csv‘
解决python中出现的不可见字符问题,OSError: [Errno 22] Invalid argument: '\u202a**.csv'问题描述不可见控制字符解决方法问题描述今天遇到一个坑,读取文件时,在用到open函数时,始终报OSError: [Errno 22] Invalid argument:的错误,意思说文件路径错误。pandas读取csv文件时,pandas自带open()运行报错误OSError: [Errno 22] Invalid argument: '\u202a**.c
2020-11-26 21:43:41
5058
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人