I would like to add a column of '1's on all my rows of first column... For example, before:
9 8 4
3 4 5
3 2 1
after:
1 9 8 4
1 3 4 5
1 3 2 1
My code so far:
import numpy as np
import pandas as pd
training = pd.read_csv('data.csv', header = None)
training
training.shape
Output = (300, 14)
To make data into a matrix:
trainingData = training.values
Insert a column of 1's in the first column on all rows
featureVector = np.insert(featureVector, 0, 1, axis=0)
When I print the variable featureVector, I don't see the 1's...how can I do this or fix it?