摘要: jupyter notebook nbextension常用扩展模块不显示 nbextension不显示有很多的可能,看了许多博客,试过无数种方法之后发现问题还是解决不了其实这最后的问题就是jupyter notebook版本的问题,你只需要降低你notebook的版本即可解决问题: 命令行输入:p 阅读全文
posted @ 2023-02-21 20:13 小杨的冥想课 阅读(162) 评论(0) 推荐(0) 编辑
摘要: 数组的基本操作 1.数组的索引、切片 一维、二维、三维的数组切片 直接进行索引,切片 对象[:,:]—先行后列 #对于二维数组 x1 = np.random.uniform(0,1,[4,5]) #生成一个4行5列的波动区间在4~5之间的数组 a = x1[0,0:3]#获取第一行,前3列的数据 # 阅读全文
posted @ 2023-02-21 19:51 小杨的冥想课 阅读(34) 评论(0) 推荐(0) 编辑
摘要: 生成数组的方法 1.生成0和1数组 np.ones(shape,dtype) np.ones_like(a,dtype) np.zeros(shape,dtype) np.zeros_like(shape,dtype) score = np.array([[80,89,86,67,79],[78,9 阅读全文
posted @ 2023-02-21 17:20 小杨的冥想课 阅读(120) 评论(0) 推荐(0) 编辑
摘要: 数据合并concat #concat 函数 #参数解释 concat( objs: Iterable[NDFrame] | Mapping[HashableT, NDFrame], axis: Axis = 0, join: str = "outer",#设置函数的并集、交集问题 ignore_in 阅读全文
posted @ 2023-02-21 15:24 小杨的冥想课 阅读(172) 评论(0) 推荐(0) 编辑