Panda Fundamental

NumPy provides fundamental structures and tools that makes working with data easier, but there are several things that limit its usefulness as a single tool when working with data:

· The lack of support for column names forces us to frame the questions we want to answer as multi-dimensional array operations.

· Support for only one data type per ndarray makes it more difficult to work with data that contains both numeric and string data.

· There are lots of low level methods, however there are many common analysis patterns that don’t have pre-built methods.

The pandas library provides solutions to all of these pain points and more. Pandas is not so much a replacement for NumPy as an extension of NumPy. The underlying code for pandas uses the NumPy library extensively, which means the concepts you’ve been learning will come in handy as you begin to learn more about pandas.

1. DataFrame.dtypes

similar to NumPy’s ndarray.dtype attribute, return information about the types of each column.
1.Panda Fundamental
2. DataFrame.loc[] Panda FundamentalA是label1列和label2列的所有行;B是label1列到label2列的所有列的所有元素
shortcuts:
Panda Fundamental
3. Series.describe() : returns some descriptive statistics on the data contained within a specific pandas seriesPanda Fundamental
count: 非零数
unique:unique数
top:most common value
freq:most common value 的频率

4.add a new column:Panda Fundamental
5. boolean indexing.Panda FundamentalPanda Fundamental