CSC 223 - Advanced Scientific Computing, Fall 2017
CSC 223 - Advanced Scientific Computing, Fall
2017
Pandas
Pandas
Pandas is a library built on Numpy that provides an
implementation of a DataFrame
A DataFrame is a multidimensional array with row and
column labels and can contain heterogeneous types
Pandas provides three main data types: Series, DataFrame,
and Index
Pandas Series
The Series type represents a one-dimensional array of
indexed data
Constructing Series objects
pd.Series(data, index=index)
data can be a list, numpy array, or dict
index is an array of index values
Indexing Series Object
A Series is indexed by its index values
A Series can also be sliced like a Python list
Pandas DataFrame Object
A DataFrame is two-dimensional array with flexible row and
column names
Each column in a DataFrame is a Series
DataFrame objects can be constructed from:
a
a
a
a
single Series
list of dicts
dict of Series objects
two-dimensional Numpy array
Example:
pd . DataFrame ( np . random . rand (3 ,2) ,
columns =[ ¡¯ one ¡¯ , ¡¯two ¡¯] ,
index =[ ¡¯a ¡¯ , ¡¯b ¡¯ , ¡¯c ¡¯])
Pandas Index Object
An Index enables the reference and modification of elements
in Series and Index objects
An Index can be thought of as an immutable array or as an
ordered set
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
Related searches
- fall equinox 2017 time
- formula for computing interest on a loan
- computing average product cost calculator
- fall tv schedule 2017 2018
- first day of fall 2016 2017 2018
- liberty university fall 2017 calendar
- computing formula standard deviation
- domain of csc x
- cos x 4 csc x 5
- computing the inverse of a matrix
- major computing trends
- fall 2017 newsletter