There are a number of ways to create a data frame. A data frame can be created from either a single or multi-dimensional set of data. The techniques that we will examine are as follows:
- Using the results of NumPy functions
- Using data from a Python dictionary consisting of lists or pandas Series objects
- Using data from a CSV file
While examining each of these we will also examine how to specify column names, demonstrate how alignment is performed during initialization, and see how to determine the dimensions of a data frame.