自定义博客皮肤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)
  • 收藏
  • 关注

原创 【Python-pandas】pandas入门

Seriesimport pandas as pdfrom pandas import Series,DataFrame# 因为pandas含有使得数据分析工作变得更快和更简单那的高级数据结构和操作工具# pandas是基于Numpy来进行构建的,让以Numpy为中心的应用变得更加简单## Series类型说明# 这个就是一种类似于一维数组的对象,它是由一组阈值相关的数组标签组成(索引)# 仅由一组数据即可产生最简单的Seriesobj=Series([1,2,3,4,5])print

2021-10-22 16:08:48 354

原创 【Python-BUG】ImportError: Missing optional dependency ‘xlrd‘. Install xlrd >= 1.0.0 for E

原因:缺少xlrd模块解决方案:pip install xlrd输出Collecting xlrd Using cached xlrd-2.0.1-py2.py3-none-any.whl (96 kB)Installing collected packages: xlrdSuccessfully installed xlrd-2.0.1

2021-10-22 15:22:30 2080

原创 【Python】numpy学习笔记

reshapeimport numpy as np#生成8行4列的元素arr=np.arange(12).reshape((2,6))print(arr)输出:[[ 0 1 2 3 4 5] [ 6 7 8 9 10 11]]arr=np.arange(24).reshape((2,3,4))print(arr)输出:“”“[[[ 0 1 2 3] [ 4 5 6 7] [ 8 9 10 11]] [[12 13 14 15] [16 1

2021-10-21 15:58:32 145

原创 【Python-BUG】module ‘matplotlib‘ has no attribute ‘plot‘

问题所在import matplotlib.pyplot as plt#很容易漏掉pyplot ,直接写成 import matplotlib as plt导致错误错误写法import numpy as npimport matplotlib as plt# 随机漫步position=0walk=[position]steps=1000for i in range(steps): step= 1 if np.random.randint(0,2) else -1 pos

2021-10-21 15:56:10 4333

原创 【七天入门ML与DL-02】fit_transform和fit、transform

fit_transform()的作用是 对输入的数据做变换等价于fit+transformfrom sklearn.preprocessing import StandardScalers=StandardScaler()data=[[1,2,3],[4,5,6]]s_rs=s.fit_transform(data)print(s_rs)ss=StandardScaler()ss_rs=ss.fit(data)ss_rs=ss.transform(data)print(ss_rs)

2021-10-19 19:34:37 82

原创 【七天入门ML与DL-01】加载sklearn自带的数据集 数据集划分

加载鸢尾花数据集 并且划分数据集和验证集from sklearn.datasets import load_irisfrom sklearn.model_selection import train_test_splitli=load_iris()# print("获取特征值")# print(li.data)# print("目标值")# print(li.target)# print("描述")# print(li.DESCR)#返回值#train --> x_train

2021-10-19 16:36:46 137

空空如也

空空如也

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

TA关注的人

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