I have a Pandas data frame object of shape (X,Y) that looks like this:
[[1, 2, 3], [4, 5, 6], [7, 8, 9]]
and a numpy sparse matrix (CSC) of
df = pd.DataFrame(np.arange(1,10).reshape(3,3)) df['newcol'] = pd.Series(your_2d_numpy_array)