自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(6)
  • 收藏
  • 关注

原创 WARNING: You are using pip version 22.0.4; however, version 23.0.1 is available.

升级python版本

2023-03-24 13:49:26 923

原创 python-csv文件输入和输出-小白篇

python-csv文件基础编辑

2022-06-05 13:27:46 484

原创 python 使用 pandas报错 list index out of range

问题:import csvimport matplotlib.pyplot as pltimport pandas as pddf = pd.read_csv("D:/data/0403/output2.csv", index_col=0,encoding='GBK')df[:3]代码正确,出现错误:IndexError: list index out of range参考答案:https://blog.csdn.net/weixin_37746009/article/de.

2022-04-14 11:07:12 1704

原创 python 使用sk_learn :ValueError: Expected 2D array, got 1D array instead

源代码"""date:0328K均值KMeans模型"""import pandas as pddf = pd.read_csv("D:/mechine learning/transfer-time-location.csv", index_col=0,encoding='GBK')df[:3]from sklearn.cluster import KMeansmodel = KMeans(n_clusters=7)X = df['transfer_time']model.

2022-03-28 09:51:35 1687

原创 Pycharm-pandas库打不开文件:Invalid argument:

pandas库打不开文件,源代码如下"""created by mattiedate:0328用pd打开csv文件"""import pandas as pddef getContent(path): df = pd.read_csv(open(path), index_col=0) print(len(df)) print(df.head(2)) return dfdf=getContent("D:\mechine learning\transfe

2022-03-28 08:37:06 500

原创 ipython安转错误

安装的时候提示错误:File "<stdin>" , line 1应该再cmd下运行,不是在Python下运行。退出python环境再输入pip install ipython参考答案File "<stdin>" , line 1 错误_qingshuiyangfan的专栏-CSDN博客_filestdinline1什么意思...

2022-01-24 22:37:50 703

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除