02 2020 档案
摘要:作者:知乎用户链接:https://www.zhihu.com/question/20208198/answer/42576188来源:知乎著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。 设想你手头有一枚硬币,掷出硬币得到正反面的概率都为50%; 你每天都掷一次硬币,并把掷出的
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12257180.html Python datetime python内置模块,主要包含以下几个类: date:使用公历日历存储的日期(年,月,日) time:将时间存储为小时,分钟,秒和微秒 datet
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12256178.html DataFrame 常用查看数据的操作 df.head() df.tail() df.index,df.columns,df.values,df.shape df.info()
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12254786.html NA handling methods isnull, not null The built-in Python None value is also treated as NA
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12253890.html 数据表合并 有时候需要将多个渠道源的多个数据表进行合并,一个 DataFrame 相当于一个数据库的数据表,那么多个 DataFrame 数据表的合并就相当于多个数据库的表合并。
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12253679.html 在数据清洗后,就要对数据进行统计。pandas 和 NumPy 一样,都有常用的统计函数,如果遇到空值 NaN,会自动排除。 常用的统计函数包括: 表格中有一个 describe
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12253468.html pandas.DataFrame.apply apply 函数是 pandas 中自由度非常高的函数,使用频率也非常高。 e.g. 对 name 列的数值都进行大写转化 定义 d
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12251503.html DataFrame DataFrame代表一个矩阵数据表,并包含一个有序的列集合,每个列可以是不同的值类型(数字,字符串,布尔值等)。 DataFrame同时具有行索引和列索引;
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12250011.html Series Series是一个一维数组类对象,包含一个值序列(与NumPy类型类似)和一个关联的数据标签数组(表示它的索引)。 创建Series Note: 左边为索引,右边为
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12249687.html Introduction pandas is a fast, powerful, flexible and easy to use open source data analys
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12248485.html numpy.random The numpy.random module supplements the built-in Python random with function
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12247717.html Basic array statistical methods A set of mathematical functions that compute statistics a
阅读全文
摘要:原创转载请注明出处:https://www.cnblogs.com/agilestyle/p/12247644.html ufunc A universal function (or ufunc for short) is a function that operates on ndarrays i
阅读全文