Concept Flow - Creating DataFrame from NumPy array
Start with NumPy array
Call pd.DataFrame(array)
Create DataFrame object
Assign default or custom row/column labels
DataFrame ready for use
We start with a NumPy array, pass it to pandas DataFrame constructor, which creates a DataFrame with optional labels.