1. Read mutiple data files; import pandas as pd data_files = [ "ap_2010.csv", "class_size.csv", "demographics.csv", "graduation.csv", "hs_directory.cs ...
分类:
其他好文 时间:
2016-10-19 09:29:09
阅读次数:
215
import numpy as npimport pandas as pdimport time import datetimeimport csv os.chdir(r"D:\jczj\Desktop\项目\德甲")allgame2=pd.read_excel(r"D:\jczj\Desktop\ ...
分类:
其他好文 时间:
2016-10-18 01:46:49
阅读次数:
141
摘要: pandas 的 GroupBy 功能可以方便地对数据进行分组、应用函数、转换和聚合等操作。 # 原作者:lionets GroupBy 分组运算有时也被称为 “split-apply-combine” 操作。其中的 “split” 便是借由 obj.groupby() 方法来实现的。 .g ...
分类:
编程语言 时间:
2016-10-16 19:23:32
阅读次数:
557
不知不觉收藏了好多链接,筛选一下,放在这里吧~ 关于Python学习: 《Learn Python the Hard Way》该书对应有英文版:网络教程 喜欢中文教程的有廖雪峰的官方网站:廖雪峰 (此链接为Python2.7版教程) 一个很好的学习pandas数据分析的:ipython-notebo ...
分类:
编程语言 时间:
2016-10-13 14:41:28
阅读次数:
169
1. When ever we would like to assign an array into a Series, we need to use [[]] instead [] 2. double_df = float_df.apply(lambda x: x*2)# use apply() ...
分类:
其他好文 时间:
2016-10-13 07:35:38
阅读次数:
102
目录 图解“split-apply-combine” 数据的分类split:groupby 以column进行分组 以index进行分组 分组遍历 数据的应用apply:aggregate & agg 数据的转译tansformaton:transform 数据的过滤filteration:filt ...
分类:
其他好文 时间:
2016-10-12 11:28:59
阅读次数:
127
Pandas包对数据的常用探索功能,方便了解数据描述性属性。 Pandas数据格式 Series DataFrame:每个column就是一个Series 基础属性 shape 返回行列数 index columns values dtype/dtypes 返回行列数 基础方法 unique() 返 ...
分类:
其他好文 时间:
2016-10-11 11:23:03
阅读次数:
162
1. For searching certain row in certain column. We use name["column_name"][row_index] to locate the certain data in the DataFrame. ...
分类:
其他好文 时间:
2016-10-07 07:40:06
阅读次数:
108
1. pandas.csv_read() to read the .csv file. After read, it is automatically convert DataFrame 2.The DataFrame is the frame for Pandas. It is not a mat ...
分类:
其他好文 时间:
2016-10-06 15:03:17
阅读次数:
154
1. NumPy: NumPy is a Python module that is used to create and manipulate multidimensional arrays. 2. genfromtxt() : Function of reading dataset in Num ...
分类:
其他好文 时间:
2016-10-06 06:57:38
阅读次数:
106