
Python
从事Python的小白
慕斯-ing
行云流水敲码,凡尘俗世皆空,敲着代码品茶,感受趣味时光......
展开
-
SyntaxError: (unicode error) ‘unicodeescape‘ codec can‘t decode bytes in position 2-3: truncated \UX
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UX原创 2023-02-27 23:07:30 · 403 阅读 · 0 评论 -
CMD中利用pip安装tensorflow时报:无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称
CMD中利用pip安装tensorflow时报:无法将“pip”项识别为 cmdlet、函数、脚本文件或可运行程序的名称原创 2023-02-27 22:53:36 · 393 阅读 · 0 评论 -
‘pip‘不是内部或外部命令,也不是可运行的程序或批处理文件
'pip'不是内部或外部命令,也不是可运行的程序或批处理文件原创 2023-02-27 22:44:09 · 1761 阅读 · 1 评论 -
如何查看Python的安装路径
如何查看Python的安装路径原创 2023-02-27 22:06:39 · 2038 阅读 · 0 评论 -
AttributeError: ‘builtin_function_or_method‘ object has no attribute ‘randint‘
AttributeError: 'builtin_function_or_method' object has no attribute 'randint'原创 2023-02-01 22:07:53 · 576 阅读 · 1 评论 -
python的概念、特点、实现、版本2.x与3.x的区别
python的概念、特点、实现、版本2.x与3.x的区别原创 2022-12-29 02:29:26 · 559 阅读 · 0 评论 -
Python的安装
Window 平台、Unix & Linux 平台、MAC 平台下的Python的安装、环境配置和测试原创 2022-12-29 01:08:36 · 439 阅读 · 0 评论 -
皮尔森相关性系数的计算python代码(四)(热力图版)
皮尔森相关性系数的计算python代码(四)(热力图版)原创 2022-05-02 15:14:26 · 1943 阅读 · 0 评论 -
皮尔森相关性系数的计算python代码(三)
皮尔森相关性系数的计算python代码(三)原创 2022-05-01 21:41:02 · 1442 阅读 · 0 评论 -
箱型图分析的python代码
箱型图分析的python代码原创 2022-05-01 17:53:11 · 1147 阅读 · 0 评论 -
Z-score标准化的python代码
Z-score标准化的python代码原创 2022-05-01 17:43:52 · 5093 阅读 · 0 评论 -
KNN最近邻的python代码
KNN最近邻的python代码原创 2022-04-30 22:51:13 · 251 阅读 · 0 评论 -
在Sklearn中使用LinearRegression运行RFE的python代码
在Sklearn中使用LinearRegression运行RFE的python代码原创 2022-04-30 16:31:25 · 451 阅读 · 0 评论 -
在Sklearn中使用SVC运行RFE的python代码
在Sklearn中使用SVC运行RFE的python代码原创 2022-04-30 16:19:44 · 1221 阅读 · 0 评论 -
互信息MI的python代码
互信息MI的python代码原创 2022-04-30 16:10:03 · 849 阅读 · 0 评论 -
Linear Regression的Python代码
Linear Regression的Python代码原创 2022-04-30 16:05:12 · 353 阅读 · 0 评论 -
两条曲线的关节拟合(python代码)
两条曲线的关节拟合(python代码)原创 2022-04-30 15:57:00 · 625 阅读 · 0 评论 -
决策树、随机森林和极度随机森林的交叉验证评分
决策树、随机森林和极度随机森林的交叉验证评分原创 2022-04-30 15:28:00 · 607 阅读 · 0 评论 -
最大信息系数MIC的python代码
最大信息系数MIC的python代码原创 2022-04-30 15:17:36 · 1364 阅读 · 0 评论 -
xls、csv和txt文件的读取-python代码
xls、csv和txt文件的读取-python代码原创 2022-04-30 15:12:22 · 352 阅读 · 0 评论 -
拉依达准则的python代码
拉依达准则的python代码原创 2022-04-30 14:47:10 · 892 阅读 · 0 评论 -
AttributeError: module ‘tensorflow‘ has no attribute ‘get_default_graph‘
AttributeError: module 'tensorflow' has no attribute 'get_default_graph'原创 2022-03-31 15:56:33 · 265 阅读 · 1 评论 -
皮尔森相关性系数的计算python代码(二)
皮尔森相关性系数的计算python代码(二)原创 2022-03-28 16:29:59 · 1711 阅读 · 0 评论 -
皮尔森相关性系数的计算python代码(一)
皮尔森相关性系数的计算python代码(一)原创 2022-03-28 16:28:25 · 3166 阅读 · 0 评论 -
Decimal scaling标准化计算的python代码
Decimal scaling标准化计算的python代码原创 2022-03-28 16:23:57 · 636 阅读 · 0 评论 -
斯皮尔曼相关系数计算的python代码
斯皮尔曼相关系数计算的python代码原创 2022-03-28 16:13:51 · 8836 阅读 · 8 评论 -
最大最小标准化计算的python代码
最大最小标准化计算的python代码原创 2022-03-28 16:08:36 · 3574 阅读 · 0 评论 -
均值、方差和标准差计算的python代码
均值、方差和标准差计算的python代码原创 2022-03-28 16:00:19 · 4574 阅读 · 0 评论 -
ax.scatter中的label中文乱码
ax.scatter中的label中文乱码原创 2022-03-25 10:47:24 · 1044 阅读 · 0 评论 -
import matplotlib.pyplot as plt中ax.set_xlabel和ax.set_ylabel发现中文乱码
matplotlib.pyplot中绘制横纵标签原创 2022-03-17 16:06:14 · 1754 阅读 · 0 评论 -
No matching distribution found for panda(cmd中安装panda时报错)
报错界面:解决办法:当直接使用pip install panda报该错误的时候,我们可以通过换源来解决:pip install panda -i https://pypi.tuna.tsinghua.edu.cn/simple/原创 2022-01-28 14:36:16 · 1497 阅读 · 0 评论 -
AttributeError: module ‘google.protobuf.descriptor‘ has no attribute ‘_internal_create_key‘
解决办法:①安装包 streasmlit 0.5.0②安装包 protobuf 3.19.3原创 2022-01-16 22:47:48 · 757 阅读 · 0 评论 -
NotImplementedError: Cannot convert a symbolic Tensor (lstm/strided_slice:0) to a numpy array.
报错代码:NotImplementedError: Cannot convert a symbolic Tensor (lstm/strided_slice:0)原因分析:在使用LSTM的过程中发现了这个错误,分析原因是numpy的版本过高(目前是最高的1.21.1),于是将其降到1.9版本系列后即可。...原创 2021-12-30 14:57:21 · 2933 阅读 · 1 评论 -
RuntimeError: module compiled against API version 0xe but this version of numpy is 0xd
解决办法:写在Numpy,重新安装一个版本为1.14.6的即可。(我之前的版本是1.18.5)原创 2021-12-30 11:15:14 · 5231 阅读 · 0 评论 -
numpy.ndarray size changed, may indicate binary incompatibility.
报错: numpy.ndarray size changed, may indicate binary incompatibility.解决: 重新安装一下最新的numpy卸载:pip uninstall numpy 安装:pip install numpy原创 2021-12-25 15:38:17 · 2625 阅读 · 1 评论 -
ValueError: Unknown label type: ‘continuous‘
报错:ValueError: Unknown label type: ‘continuous’解决:(原)neigh.fit(practice_x, practice_y)(现)neigh.fit(practice_x, practice_y.astype('int'))原创 2021-12-10 21:49:58 · 6759 阅读 · 0 评论 -
如何利用python来查看数据中有没有缺失值?
(1)代码:print(df.isnull().any())(2)结果显示: true表示有缺失值,false表示无缺失值。原创 2021-12-09 14:00:03 · 5905 阅读 · 0 评论 -
ValueError: Input contains NaN, infinity or a value too large for dtype(‘float64‘).
原因分析: 输入的数据中含有NaN或无穷大的数据。解决办法: 找到NaN值补齐或者删除。原创 2021-12-09 13:54:45 · 1360 阅读 · 0 评论 -
TypeError: list indices must be integers or slices, not tuple
报错: TypeError: list indices must be integers or slices, not tuple解决: 直接使用 np.array() 处理数据即可解决问题。参考文章: python中list与array类型的查看与转换原创 2021-11-21 03:32:33 · 1900 阅读 · 0 评论 -
AttributeError: ‘numpy.ndarray‘ object has no attribute ‘columns‘
报错: AttributeError: ‘numpy.ndarray’ object has no attribute ‘columns’解决: 直接使用 a.tolist() 处理数据即可解决问题。参考文章: python中list与array类型的查看与转换原创 2021-11-21 03:30:28 · 9281 阅读 · 0 评论