Numpy Count Number Of Columns In Dataframe To Tensor