# coding: utf-8
import pandas as pd
ntest = ['a','b']
ltest = [[1,2], [4,5,6]]
data = [(k, v) for k, l in zip(ntest, ltest) for v in l]
print pd.DataFrame(data)
If the structure of the second array is determined, you can first split the second array into a one-dimensional array, and then traverse the two arrays to generate a dataframe.
If the structure of the second array is determined, you can first split the second array into a one-dimensional array, and then traverse the two arrays to generate a dataframe.