摘要: In Series, the difference of indexing values between by number and by letter 阅读全文
posted @ 2017-07-05 23:24 XinZhou_Annie 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Pandas: In [1]: from pandas import Series, DataFrame In[2]: import pandas as pd Series: Get values and index of the series Function: reshape() reindex 阅读全文
posted @ 2017-07-05 14:29 XinZhou_Annie 阅读(357) 评论(0) 推荐(0) 编辑
摘要: float: 8bits(指数位)2^7=128 23bits(尾数位) double: 11bits(指数位)2^10=1024 52bits(尾数位) np.arange() : dtype( 数据类型): astype() : ** 2个乘号就是乘方。比如2**4,结果就是2的4次方,结果是1 阅读全文
posted @ 2017-07-03 23:17 XinZhou_Annie 阅读(194) 评论(0) 推荐(0) 编辑
摘要: NumPy 和SciPy结合完全可以替代MATLAB的计算功能(包括其插件工具箱) NumPy, SciPy, matplotlib以及IPython这些包含在Canopy中了。 第2章引言 来自bit.ly的1.usa.gov数据 一、JSON 数据准备 首先准备一份 JSON 数据,这份数据共有 阅读全文
posted @ 2017-07-02 16:39 XinZhou_Annie 阅读(292) 评论(0) 推荐(0) 编辑
摘要: <A Byte of Python> Chapter 16. What next? Problem: create your own command-line address-book program using which you can add, modify, delete or search 阅读全文
posted @ 2017-06-30 15:52 XinZhou_Annie 阅读(255) 评论(0) 推荐(0) 编辑
摘要: Output RESTART: /Users/zhouxin/Desktop/cPickle.py {'Xiaopeng Yang': (18000001219L, '18700000019@139.com')}>>> It also creates AddressList.data. About 阅读全文
posted @ 2017-06-30 15:36 XinZhou_Annie 阅读(128) 评论(0) 推荐(0) 编辑
摘要: Pairs of keys and value are specified in a dictionary by using the notation d = {key1 : value1, key2 : value2 }. one key and multi-value ab = {key1 : 阅读全文
posted @ 2017-06-30 15:05 XinZhou_Annie 阅读(280) 评论(0) 推荐(0) 编辑