Book Image

Hands-On Data Analysis with NumPy and Pandas

By : Curtis Miller
5 (1)
Book Image

Hands-On Data Analysis with NumPy and Pandas

5 (1)
By: Curtis Miller

Overview of this book

Python, a multi-paradigm programming language, has become the language of choice for data scientists for visualization, data analysis, and machine learning. Hands-On Data Analysis with NumPy and Pandas starts by guiding you in setting up the right environment for data analysis with Python, along with helping you install the correct Python distribution. In addition to this, you will work with the Jupyter notebook and set up a database. Once you have covered Jupyter, you will dig deep into Python’s NumPy package, a powerful extension with advanced mathematical functions. You will then move on to creating NumPy arrays and employing different array methods and functions. You will explore Python’s pandas extension which will help you get to grips with data mining and learn to subset your data. Last but not the least you will grasp how to manage your datasets by sorting and ranking them. By the end of this book, you will have learned to index and group your data for sophisticated data analysis and manipulation.
Table of Contents (12 chapters)

Plotting with pandas


In this section, we will be discussing the plotting methods provided by pandas series and DataFrames. You will see how to easily and quickly create a number of useful plots. pandas has not yet come up with plotting functionality that's entirely its own. Rather, plots created from pandas objects using pandas methods are just wrappers for more complex calls made to a plotting library called Matplotlib. This is a well-known library in the scientific Python community, one of the first plotting systems, and perhaps the most commonly used one, though other plotting systems are looking to supplant it.

It was initially inspired by the plotting system provided with MATLAB, though now it is its own beast, but not necessarily the easiest to use. Matplotlib has a lot of functionality, and we will only scratch the surface of plotting with it in this course. This section is the extent to which we discuss visualization with Python beyond particular instances, even though visualization...