I have the following pandas dataframe
pandas
import pandas as pd a = [2.5,3.3] b = [3.6,3.9] D = {\'A\': a, \'B\': b}
which gives me
You can melt and call to_records:
pd.melt(df).to_records(index=False)