#!/usr/bin/env python # -*- coding: utf-8 -*- # @Time : 2018/5/24 15:03 # @Author : zhang chao # @File : s.py from scipy import linalg as lg #按标签选择 #通... ...
分类:
其他好文 时间:
2018-05-25 21:21:25
阅读次数:
262
1、通过传递numpy数组,使用datetime索引和标记列来创建DataFrame 2、通过传递可以转换为类似系列的对象的字典来创建DataFrame 3、 4、 5、描述显示数据的快速统计摘要 6、调换数据 行列转换 类似矩阵转置 7、通过轴排序 8、 9、 ...
分类:
其他好文 时间:
2018-05-25 21:20:33
阅读次数:
369
D:\Download\python3\python3.exe D:/Download/pycharmworkspace/s.pydf: A B C D2017-01-01 -1.353900 -0.737163 -0.266858 -0.2191162017-01-02 -2.328935 0.2 ...
分类:
其他好文 时间:
2018-05-25 21:07:13
阅读次数:
157
系列(Series) 数据帧(DataFrame) 面板(Panel) 这些数据结构构建在Numpy数组之上,这意味着它们很快。 考虑这些数据结构的最好方法是,较高维数据结构是其较低维数据结构的容器。 例如,DataFrame是Series的容器,Panel是DataFrame的容器。 构建和处理两 ...
分类:
其他好文 时间:
2018-05-25 19:37:50
阅读次数:
210
1 创建多层索引 1)隐式构造 最常见的方法是给DataFrame构造函数的index参数传递两个或更多的数组 · Series也可以创建多层索引 一般情况下,两层索引就够用了 2)显式构造 pd.MultiIndex · 使用数组 · 使用tuple · 使用product 最简单,推荐使用 2 ...
分类:
其他好文 时间:
2018-05-25 11:12:12
阅读次数:
711
ubuntu下安装pandas出现 compile failed with error code 1 in /tmp/pip_build_hadoop/pandas ...
分类:
系统相关 时间:
2018-05-23 18:08:06
阅读次数:
253
第一课 Python入门知识点1:Python安装知识点2:常用数据分析库NumPy、Scipy、Pandas、matplotlib安装知识点3:常用高级数据分析库scikit-learn、NLTK安装知识点4:IPython的安装与使用知识点5:Python2与Python3区别简介实战项目:Py ...
分类:
编程语言 时间:
2018-05-22 22:25:26
阅读次数:
300
import pandas as pd import numpy as np # df=pd.read_csv("HR.csv") print(df) ...
分类:
编程语言 时间:
2018-05-22 22:13:27
阅读次数:
153
1. 默认的pandas不能读取excel。需要安装xlrd, xlwt才能支持excel的读写 2.pandas基本数据结构是Series 和 DataFrame Series序列,类似与一维数组; Data Frame则相当于一张二维表格,类似于二维数组,它的每一列都是一个Series,每个se ...
分类:
其他好文 时间:
2018-05-20 18:16:50
阅读次数:
193
https://github.com/wk2014/PandasLearnClass/blob/master/pandas%20%E5%88%86%E5%B1%82%E7%B4%A2%E5%BC%952.ipynb https://github.com/wk2014/PandasLearnClass ...
分类:
其他好文 时间:
2018-05-19 23:18:53
阅读次数:
219