随笔分类 -  深度学习&机器学习&机器学习 / 深度学习(numpy使用,pandas数据处理,Matplotlib画图)

(numpy使用,pandas数据处理,Matplotlib画图)
摘要:https://leetcode.cn/studyplan/introduction-to-pandas/ 1.删去丢失的数据 首先我们看一下 print(students['name'].isnull())返回的什么 0 False 1 True 2 False 3 False Name: nam 阅读全文
posted @ 2023-11-05 21:33 lipu123 编辑
摘要:1. iloc 定义 iloc索引器用于按位置进行基于整数位置的索引或者选择。 语法 就是先行选择然后再列选择 df.iloc [row selection, column selection] 例子 (1)准备数据: (2)选择单行或单列 data.iloc[2] # 第二行 data.iloc[ 阅读全文
posted @ 2023-11-05 20:44 lipu123 编辑
摘要:numpy读取不了字符串,pandas比较方便 常用 csv 通常读取文本文件 hdf5 通常读取二进制 Json 1.读取CSV read_csv() 1.读取CSV文件-read_csv() pandas.read_csv(filepath_or_buffer, sep =',' ,usecol 阅读全文
posted @ 2023-06-09 16:57 lipu123 编辑
摘要:# 1.Pandas介绍 ![image](https://img2023.cnblogs.com/blog/1914163/202306/1914163-20230609110333551-553277769.png) >**为什么使用Pandas 便捷的数据处理能力 读取文件方便 封装了Matp 阅读全文
posted @ 2023-06-09 15:29 lipu123 阅读(27) 评论(0) 推荐(0) 编辑
摘要:# 1.介绍 > Numpy (Numerical Python) 是一个开源的 Python 科学计算库,用于快速处理任意维度的数组。(n-任意 d-dimension 维度 array-数组) Numpy 支持常见的数组和矩阵操作。对于同样的数值计算任务,使用 Numpy 比直接使用 Pytho 阅读全文
posted @ 2023-06-08 22:43 lipu123 阅读(103) 评论(0) 推荐(0) 编辑
摘要:# 一.介绍 Matplotlib 是专门用于开发 2D 图表(包括 3D 图表)的 python 库 对应的 JS 库有 D3 (opens new window)echarts 官网:[Matplotlib](https://matplotlib.org/index.html "Matplotl 阅读全文
posted @ 2023-06-08 17:34 lipu123 阅读(88) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示