Convert Pandas Dataframe Date Index and Column to Numpy Array
<p>How can I convert 1 column and the index of a Pandas dataframe with several columns to a Numpy array with the dates lining up with the correct column value from the dataframe?</p>

<p>There are a few issues here with data type and its driving my nuts trying to get both the index and the column out and into the one array!!</p>

<p>Help would be much appreciated!</p>

<p>If <code>A</code> is dataframe and <code>col</code> the column:</p>

<p><code>import pandas as pd
output = pd.np.column_stack((A.index.values, A.col.values))</code></p>

python arrays pandas numpy dataframe