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.
May I suggest adding the columns one by one. It might help with efficiency. Like this for example,
import numpy as np import pandas as pd df = pd.DataFrame() col1 = np.array([1, 2, 3]) col2 = np.array([4, 5, 6]) df['col1'] = col1 df['col2'] = col2
>>> df col1 col2 0 1 4 1 2 5 2 3 6