Chapter 9Data Analysis and Visualization
The Python language has become one of the most popular languages for data science. The Python community has developed a rich collection of powerful libraries and other utilities used broadly by professional data scientists. These same tools can be leveraged by laboratory scientists to work with their own data. After all, data is what the laboratory is all about. In this chapter we will introduce those libraries with a special focus on areas that are most useful for scientific data.
The modules introduced in this chapter are part of what is known informally as the Scientific Python Stack. Libraries listed in Table 9.1 are widely considered to be core to the stack even though you may discover others that you rely upon frequently. We’ll introduce the libraries listed in Table 9.1 in the sections of this chapter.
Table 9.1 Core Libraries in the Python Scientific Stack.
| Library | Description | URL |
|---|---|---|
NumPy |
Adds an optimized N-dimensional array data structure with fast computations. | https://numpy.org/ |
pandas |
Adds an optimized table data structure for working with tables of data. | https://pandas.pydata.org/ |
scikit-learn |
Provides a wide range of prewritten machine learning algorithms. | https://scikit-learn.org/ |
SciPy |
Provides a wide range of prewritten scientific algorithms. | https://scipy.org/ |
matplotlib |
Produces publication-quality scientific charting and visualization. | https://matplotlib.org/ |
Jupyter |
A notebook-style editor for Python. |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access