Introduction to Python: NumPy, Pandas and Plotting
Introduction to Python: NumPy, Pandas and Plotting
Bioinformatics and Research Computing (BaRC)
NumPy
? Numerical Python ? Efficient multidimensional array processing
and operations
? Linear algebra (matrix operations) ? Mathematical functions
? Array (objects) must be of the same type
2
NumPy: Slicing
McKinney, W., Python for Data Analysis, 2nd Ed. (2017)
3
Pandas
? Efficient for processing tabular, or panel, data ? Built on top of NumPy ? Data structures: Series and DataFrame (DF)
? Series: one-dimensional , same data type ? DataFrame: two-dimensional, columns of different data types ? index can be integer (0,1,...) or non-integer ('GeneA','GeneB',...)
index
Series
Gene Expression
GeneA
3.51
GeneB
0.44
GeneC
5.21
GeneD
4.55
GeneE
6.78
index
DataFrame
Gene
GTEX- GTEX- GTEX1117F 111CU 111FC
0
DDX11L1
0.1082 0.1158 0.02104
1
WASH7P
21.4 11.03 16.75
2
MIR1302-11
0.1602 0.06433 0.04674
3
FAM138A
0.05045
0 0.02945
4
OR4G4P
0
0
0
5
OR4F5
0
0
0
axis = 1
axis = 0 4
What can you do with a Pandas DataFrame?
? Filter
? Select rows/columns
? Sort ? Numerical or Mathematical operations (e.g.
mean) ? Group by column(s) ? Many others!
5
................
................
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
- sort a data frame by column in ascending descending order tutorial kart
- data handling using pandas 1
- introduction to python numpy pandas and plotting
- pandas datareader documentation read the docs
- pandasguide read the docs
- pandas powerful python data analysis toolkit
- pandas for everyone python data analysis
- about the tutorial
- pandas dataframe notes university of idaho
- programs write a pandas program to multiple and divide two pandas
Related searches
- convert numpy array to python array
- python numpy array to list
- how to install numpy for python 3
- introduction to python pdf
- python numpy convert to int
- python numpy array to bytes
- python numpy list to array
- introduction to python programming pdf
- numpy float to python float
- numpy array to python array
- python numpy array to int
- change numpy int32 to python int