Saturday, October 27, 2018

python code to convert data frame to multi dimensional array(matrix) and access its columns

import pandas as pd
import os

os.chdir("D:\\DigitRecog\\Kaggle\\all")

Images = pd.read_csv("train.csv")
type(Images)

Images = Images.values
y=Images[:,0]
y.shape[0]

No comments:

Post a Comment