“~ ”在pands中表示否定的意思。 In[1]:s = pd.Series(range(-3, 4)) Out[1]: s 0 -3 1 -2 2 -1 3 0 4 1 5 2 6 3 In[2]:s[~(s < 0)] Out[2]: 3 0 4 1 5 2 6 3 dtype: int64 其它: | for or, & for and 参考:Boolean Indexing,https://pandas.
https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.insert.html?highlight=insert#pandas.DataFrame.insert
网址: https://pandas.pydata.org/docs/reference/api/pandas.Series.str.contains.html?highlight=contains#pandas.Series.str.contains
写在前面的话: 实例中的所有数据都是在GitHub上下载的,打包下载即可。 地址是: [ http://github.com/pydata/pydata-book ](http://github.com/pydata/pydata- book) 还有一定要说明的: 我使用的是Python2.7,书中的代码有一些有错误,我使用自己的2.7版本调通。 # coding: utf-8
写在前面的话: 实例中的所有数据都是在GitHub上下载的,打包下载即可。 地址是: [ http://github.com/pydata/pydata-book ](http://github.com/pydata/pydata- book) 还有一定要说明的: 我使用的是Python2.7,书中的代码有一些有错误,我使用自己的2.7版本调通。 # coding: utf-8
写在前面的话: 实例中的所有数据都是在GitHub上下载的,打包下载即可。 地址是: [ http://github.com/pydata/pydata-book ](http://github.com/pydata/pydata- book) 还有一定要说明的: 我使用的是Python2.7,书中的代码有一些有错误,我使用自己的2.7版本调通。 # coding: utf-8
http://seaborn.pydata.org/examples/radial_facets.html
Pandas画图 1 pandas.DataFrame.plot2 pandas.Series.plot 1 pandas.DataFrame.plot DataFrame.plot(kind=‘line’)kind : str,需要绘制图形的种类 ‘line’ : line plot (default)‘bar’ : vertical bar plot‘barh’ : horizontal bar plot 关于“barh”的
Numpy 1、Universal Functions: Fast Element-Wise Array Functions(通用函数:快速点对点数组函数) 2、universal function, 是用来在ndarray中实现element-wise操作的 本文参考来源: https://github.com/BrambleXu/pydata-notebook
自己记录一个地址 http://pandas.pydata.org/
数据工具汇总 史上最全的大数据分析和制作工具 全球100款大数据工具汇总 SQL 数据分析常用语句 01 - NumPy HomePage:http://www.numpy.org/ NumPy(数值 Python 的简称)是用Python实现的用于科技计算的基础软件包,是一个强大的科学分析和建模工具 提供了大量数据结构,能够轻松地执行