In the real world, a Pandas DataFrame will be created by loading datasets from an existing store, the store can be SQL database, CSV file and Excel file. Pandas DataFrame can be created from lists, dictionary, dictionary list, etc.
Data frame — it is a two-dimensional data structure, that is, the data is aligned in a tabular form by rows and columns. With datasets arranged in rows and columns, we can store any number of datasets in a data frame. We can do a lot of operations on these datasets like arithmetic, column / row selection, column / row addition, etc.
DataFrame pandas can be created in several ways. Let’s discuss the different ways to create a DataFrame one by one.
Create an empty data frame:
The main DataFrame that can be created is an Empty DataFrame. An empty Dataframe is created by simply calling the Dataframe constructor.
Empty DataFrame Columns:  Index: 
Create dataframe using List :
DataFrame can be created using one list or a list of lists.
Create a DataFrame from a ndarray / lists reference :
To create a DataFrame from an array / list reference , all arrays must be the same length. If an index is passed, then the length index must be equal to the length of the arrays. If no index is passed, then by default the index will be range (n), where n — array length.
Output: Several ways to create a data frame:
# import pandas as pd
pandas as pd
# list dictionary
" aparna "
" pankaj "
"M .Tech "
" MBA "
Several ways to create a data frame: