python笔记
努力学--ing
这个作者很懒,什么都没留下…
展开
-
corr()函数的用法
corr()函数的用法corr可选的方式有三种:1)pearson:相关系数来衡量两个数据集合是否在一条线上面,即针对线性数据的相关系数计算,针对非线性数据便会有误差。2)spearman:非线性的,非正太分析的数据的相关系数3)kendall:用于反映分类变量相关性的指标,即针对无序序列的相关系数,非正太分布的数据其中corr()函数的参数为空时,默认使用的参数为pearson上面的结果验证了,pearson对线性的预测较好,对于幂函数,预测差强人意。...原创 2020-09-20 18:09:59 · 40525 阅读 · 0 评论 -
Pandas------数据透视
Pandas------数据透视请看本文原创 2020-09-01 20:18:54 · 126 阅读 · 0 评论 -
Python ----FacetGrid使用方法
Python----FacetGrid使用方法12原创 2020-09-01 17:09:49 · 337 阅读 · 0 评论 -
pandas 的describe函数的参数详解
pandas 的describe函数的参数详解12原创 2020-09-01 17:01:21 · 807 阅读 · 0 评论 -
Python 中pandas 中cut方法
Python 中pandas 中cut方法在对数据进行分段分组时,可采用cut方法,用bins的方式实现。这种情况一般使用于,对于年龄、分数等数据。import randomimport pandas as pdimport numpy as npfrom pandas import Series,DataFrame#用随机数产生一个二维数组。分别是年龄的性别。df=pd.DataFrame({'Age':np.random.randint(0,70,100),转载 2020-08-29 11:10:03 · 1782 阅读 · 0 评论 -
python tolist()方法
python tolist()方法将数组或者矩阵转换成列表>>> from numpy import *>>> a1 = [[1,2,3],[4,5,6]] #列表>>> a2 = array(a1) #数组>>> a2array([[1, 2, 3], [4, 5, 6]])>>> a3 = mat(a1) #矩阵>>> a3matrix([[1, 2, 3],转载 2020-08-29 10:20:48 · 913 阅读 · 0 评论 -
Pandas 文本数据方法 extract( )
Pandas 文本数据方法 extract( ) extractall( )正则表达式extract()方法原创 2020-08-29 10:04:47 · 2046 阅读 · 0 评论 -
with open(csv_path,“a+“,encoding=“utf-8“) as f:
with open(csv_path,“a+”,encoding=“utf-8”) as f:仅供自己学习原创 2020-08-28 21:20:53 · 1988 阅读 · 0 评论 -
Series
Python-Pandas中Series用法总结转载的—仅供自己学习原创 2020-08-28 18:59:26 · 125 阅读 · 0 评论