Convert Pandas Dataframe Date Index and Column to Numpy Array
If A is dataframe and col the column:
import pandas as pd
output = pd.np.column_stack((A.index.values, A.col.values))
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?
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!!
Help would be much appreciated!