1
Pandas Foundations
Importing pandas
Most users of the pandas library will use an import alias so they can refer to it as pd
. In general in this book, we will not show the pandas and NumPy imports, but they look like this:
>>> import pandas as pd
>>> import numpy as np
Introduction
The goal of this chapter is to introduce a foundation of pandas by thoroughly inspecting the Series and DataFrame data structures. It is important for pandas users to know the difference between a Series and a DataFrame.
The pandas library is useful for dealing with structured data. What is structured data? Data that is stored in tables, such as CSV files, Excel spreadsheets, or database tables, is all structured. Unstructured data consists of free form text, images, ...
Get Pandas 1.x Cookbook - Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.