上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 28 下一页
摘要: 一、pandas数据操作: 1.处理缺失数据 (1)判断是否存在缺失值 ser_obj.isnull(),df_obj.isnull() (2)dropna:丢弃缺失数据 (3)fillna:填充缺失值 2.常用的统计计算 (1)sum,mean,max,min....... (2)axis=0按照 阅读全文
posted @ 2019-01-05 15:48 stone1234567890 阅读(265) 评论(0) 推荐(0) 编辑
摘要: 一、栈和队列 1.定义: 2.操作:入栈/队列、出栈/队列、判断满/空 3:空间复杂度:O(n) 4:单次操作的时间复杂度:O(1) 5:区别: (1)先进先出(FIFO) (2)先进后出FILO 6:数组和链表皆可(线性表) 指针(辅助变量) 栈顶/底指针 队头/尾指针 关键:出入元素同时移动指针 阅读全文
posted @ 2019-01-04 21:44 stone1234567890 阅读(198) 评论(0) 推荐(0) 编辑
摘要: 第一题:题目内容 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input woul 阅读全文
posted @ 2019-01-03 21:54 stone1234567890 阅读(1170) 评论(0) 推荐(0) 编辑
摘要: 冒泡排序的时间复杂度是O(N^2) 冒泡排序的思想: 每次比较两个相邻的元素, 如果他们的顺序错误就把他们交换位置 比如有五个数: 12, 35, 99, 18, 76, 从大到小排序, 对相邻的两位进行比较 第一趟: 第一次比较: 35, 12, 99, 18, 76 第二次比较: 35, 99, 阅读全文
posted @ 2019-01-03 19:54 stone1234567890 阅读(200) 评论(0) 推荐(0) 编辑
摘要: 1 numpy.random.rand() (1)numpy.random.rand(d0,d1,…,dn) rand函数根据给定维度生成[0,1)之间的数据,包含0,不包含1 dn表格每个维度 返回值为指定维度的array (2) [[0.16965512 0.97445517 0.5199235 阅读全文
posted @ 2019-01-02 16:12 stone1234567890 阅读(2184) 评论(0) 推荐(0) 编辑
摘要: low、high、size三个参数。默认high是None,如果只有low,那范围就是[0,low)。如果有high,范围就是[low,high)。 阅读全文
posted @ 2019-01-02 15:46 stone1234567890 阅读(1140) 评论(0) 推荐(0) 编辑
摘要: 一、Matplotlib 1.用于创建出版质量图表的绘图工具库 2.目的的为Python构建一个Matlab式的绘图接口 3.import matplotlib.pyplot as plt:pyplot模块包含了常用的matplotlib API函数 4.figure (1)Matplotlib的图 阅读全文
posted @ 2019-01-02 10:42 stone1234567890 阅读(897) 评论(0) 推荐(0) 编辑
摘要: 一、Pandas的数据操作 0.DataFrame的数据结构 1.Series索引操作 (0)Series (1)Series索引,ser_obj['label'],ser_obj[pos],通过字符串的标签或者索引位置进行索引 (2)切片索引 (3)不连续的索引,ser_obj[['label1' 阅读全文
posted @ 2019-01-01 17:11 stone1234567890 阅读(925) 评论(0) 推荐(0) 编辑
摘要: 摘要: 1.时间总是过得很快,不经意间竟然来到了2019年,很感慨也很期待。 2.2018年总结 3.2019年展望。 2018年总结: (1)今年体重减了很多,我很满意。年初刚报健身房的时候体侧192斤,自己吓一跳,从正月十五进健身房到后面5月份体重减到144斤,自己比较满意,也积累了很多健身方面 阅读全文
posted @ 2019-01-01 11:21 stone1234567890 阅读(822) 评论(0) 推荐(0) 编辑
摘要: 废话不说,直接上干货 一、数据结构 (1)Series:一维数组,与Numpy中的一维array类似。二者与Python基本的数据结构List也很相近。Series如今能保存不同种数据类型,字符串、boolean值、数字等都能保存在Series中。 (2)Time- Series:以时间为索引的Se 阅读全文
posted @ 2018-12-31 17:21 stone1234567890 阅读(595) 评论(0) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 28 下一页