Unlike every other question I can find, I do not want to create a DataFrame from a homogeneous Numpy array, nor do I want to convert a structured array into a DataFrame.
pandas.DataFrame ({"col": nparray, "col": nparray})
This works if you try list (nparray)
instead. Here's a generic example:
import numpy as np
import pandas as pd
alpha = np.array ([1, 2, 3])
beta = np.array ([4, 5, 6])
gamma = np.array ([7, 8, 9])
dikt = {"Alpha" : list (alpha), "Beta" : list (beta), "Gamma":list (gamma)}
data_frame = pd.DataFrame (dikt)
print (data_frame)