loc: only work on indexiloc: work on positionix: You can get data from dataframe without it being in the indexat: get scalar values. It's a very fast ...
分类:
其他好文 时间:
2016-11-28 00:03:22
阅读次数:
308
以下分别是numpy、Scipy、pandas的简介。虽然这些包提供的一些结构比python自身的“更高级、更高效”,更高级是因为它们能完成更高级的任务,但是,学习的时候尽量不要和python割裂开认识,最好是辩证的看问题,既要看到区别,又要看到联系,这样才能理解深刻、真正的运用自如。比如pytho ...
分类:
其他好文 时间:
2016-11-26 13:49:49
阅读次数:
250
1、sudo apt-get install libxml2-dev libxslt1-dev python-dev apt-get install libevent-dev pip install lxmlpip install pandas pip install matplotlibpip i ...
分类:
其他好文 时间:
2016-11-25 23:09:44
阅读次数:
430
import pandas as pd 1、pd.set_option('expand_frame_repr', False) True就是可以换行显示。设置成False的时候不允许换行 2、pd.set_option('display.max_rows', 10) pd.set_option('d ...
分类:
其他好文 时间:
2016-11-25 11:28:24
阅读次数:
241
一个是按照index的序值. 一个是按照index的具体值. ...
分类:
其他好文 时间:
2016-11-21 14:52:05
阅读次数:
1146
前面几篇文章采用的案例的方法进行介绍的,这篇文章主要介绍Python常用的扩展包,同时结合数据挖掘相关知识介绍该包具体的用法,主要介绍Numpy、Pandas和Matplotlib三个包。目录:
...
分类:
编程语言 时间:
2016-11-18 07:46:41
阅读次数:
1674
http://blog.csdn.net/pipisorry/article/details/39506169
数据分析和建模方面的大量编程工作都是用在数据准备上的:加载、清理、转换以及重 塑。有时候...
分类:
其他好文 时间:
2016-11-18 00:35:45
阅读次数:
712
http://blog.csdn.net/pipisorry/article/details/52208727数据输入输出CSV通常来说,数据是CSV格式,就算不是,至少也可以转换成CSV格式。如:#...
分类:
其他好文 时间:
2016-11-18 00:31:33
阅读次数:
773
http://blog.csdn.net/pipisorry/article/details/18010307
pandas的数据结构:Series、DataFrame、索引对象
pandas基本功...
分类:
其他好文 时间:
2016-11-17 20:43:23
阅读次数:
2172
Python模块中的numpy,这是一个处理数组的强大模块,而该模块也是其他数据分析模块(如pandas和scipy)的核心。 接下面将从这5个方面来介绍numpy模块的内容: 1)数组的创建 2)有关数组的属性和函数 3)数组元素的获取--普通索引、切片、布尔索引和花式索引 4)统计函数与线性代数 ...
分类:
编程语言 时间:
2016-11-13 16:32:33
阅读次数:
453