The pandas library
pandas is the Python library that handles data on all fronts. pandas can import data, read data, and display data in an object called a DataFrame. A DataFrame consists of rows and columns. It’s designed to look good and perform fast computations to make sense of big data.
In the IT industry, pandas is widely used for data manipulation. It is also used for stock prediction, data storage and retrieval, statistical analysis, cleaning data, and general data science.
In the following exercises, you will begin working with DataFrames by creating them, accessing them, viewing them, and performing different computations on them.
Exercise 135 – using DataFrames to manipulate stored student test score data
In this exercise, you will create a dictionary, which is one way to create a pandas
DataFrame. You will then manipulate this data as required. To use pandas, you must import pandas
, which is universally imported as pd
. The following steps will enable...