Here in the preprocessing task, we made a new dataset of filtered columns : “data_clean”. While getting the final X, and y values , Prateek sir used indirect method of filtering required columns into list and then passing them into X and y.
My question is, can we still do this task using data_clean.iloc[ : , ] ?
Preprocessing Titanic Dataset
hi @geekayd
we can definately use iloc() on dataframes .
we have used “data_clean” using columns name so that the columns name are self explanatery for there columns and we dont have to count the column number every time using iloc()
1 Like
Thank you so much, sir!
1 Like