上一页 1 2 3 4 5 6 7 ··· 126 下一页
摘要: 具体代码(Python版本) import numpy as np # 导入numpy库,用于进行数值计算 import matplotlib.pyplot as plt # 导入matplotlib库,用于绘制图形 from sklearn import datasets # 从sklearn库中 阅读全文
posted @ 2024-03-27 17:12 yesyes1 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 问题描述 下载好tensorflow之后,就报错了~~~ 就显示tensorflow没有那个属性 问题解决 依据网上给出的答案,官网给出的解决方案是将 import tensorflow as tf 换成: import tensorflow.compat.v1 as tf tf.disable_v 阅读全文
posted @ 2024-03-27 16:52 yesyes1 阅读(32) 评论(0) 推荐(0) 编辑
摘要: 问题描述 应该是scikit-learn版本的问题,导致boston这个东西不能在这里使用,就出现这个错误; 问题解决 我们先将****换成这些(已经在报错里面明确给出来了): data_url = "http://lib.stat.cmu.edu/datasets/boston" raw_df = 阅读全文
posted @ 2024-03-27 16:48 yesyes1 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 问题描述 想要下载相应的包和依赖,发现爆出这个错误:pip command not found... 问题解决 wget https://bootstrap.pypa.io/pip/2.7/get-pip.py python get-pip.py 完美解决: 使用pip install jupyte 阅读全文
posted @ 2024-03-26 21:33 yesyes1 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 问题描述 在Linux系统下运行从Windows系统下载的文件资源,发现一直出现这个错误; 问题解决 Linux环境下运行Windows系统的文件,会自动进行格式转换,导致文件资源的格式出现错误; 所以,要么就是直接在Linux系统环境下下载文件; 要么就是将文件资源压缩再上传,之后再解压操作即可解 阅读全文
posted @ 2024-03-26 21:01 yesyes1 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 问题描述 使用python自带的绘图模块画图时,出现了这个错误:AttributeError: module 'backend_interagg' has no attribute 'FigureCanvas' 问题解决 在文件开头的地方加上这样两行代码: import matplotlib mat 阅读全文
posted @ 2024-03-23 20:06 yesyes1 阅读(264) 评论(0) 推荐(0) 编辑
摘要: 具体代码(我是以一个数据较少的csv文件做了测试,具体的csv文件需要修改部分代码才能顺利实现) import pandas as pd df01 = pd.read_csv("D:\\12140\\Desktops\\111\\333\\333.csv", encoding="utf-8", dt 阅读全文
posted @ 2024-03-23 19:40 yesyes1 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 问题描述 起初我使用python语言合并多个csv文件时,存在这几个csv文件有不止一个列名相同,仅仅依靠一个列名内容进行合并; 就很容易造成相同列名对应相同内容分别占据了两个列,感官极为不好,还会影响到后面的数据清洗; 问题解决 # 在on的这里加一个中括号,这样就能够同时包括多个列名,依据多个列 阅读全文
posted @ 2024-03-23 18:17 yesyes1 阅读(26) 评论(0) 推荐(0) 编辑
摘要: 具体代码 <input type="file" class="form-control" name="file" id="input_img"> <img id="show_img" src="" style="width: 150px;height: 100px"> <script> var ge 阅读全文
posted @ 2024-03-18 10:50 yesyes1 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 具体代码 from pyecharts.charts import Map from pyecharts import options as opts from pyecharts.globals import ThemeType import urllib.request, urllib.pars 阅读全文
posted @ 2024-03-15 19:30 yesyes1 阅读(77) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 126 下一页