Check the uploaded image please which is in sync with the following code snipped. However, check the outputs in the screen shot. You are missing one row from the dataset in case you are using skiprows in pd.read_csv method
dataset = pd.read_csv(“iris.csv”, skiprows=1) # read data from csv
print(dataset.head())
X = dataset.iloc[0:100, [0, 1, 2, 3]].values # features
print(‘X:\n’,X)
Is there any particular reason i.e., you are using skiprows in code below?
@Javeria_Tariq my bad, for asking too many questions however I appreciate your prompt responses and commitment.
Course: https://www.educative.io/courses/beginners-guide-to-deep-learning
Lesson: https://www.educative.io/courses/beginners-guide-to-deep-learning/Y53nmBk8950