Generating insights using data filtering and aggregation
Reading CSV files and selecting multiple columns is easy with
pandas. In this section, we will take a look at how to slice and dice data, essentially filtering data with
In this section, we will use the same set of libraries (the following ones) that we used in the previous recipe:
pandasfor filtering and data analysis
seabornfor plotting charts and saving the data in a PDF file
How to do it...
- Let's start by importing the required libraries and reading the CSV file with the
read_csv()method. The following code carries out the operations:
import pandas as pd from matplotlib import pyplot as plt import seaborn as sns plt.style.use('default') pd.set_option('display.line_width', ...