concept row in category machine learning

appears as: rows, rows, row, row
Machine Learning Bookcamp

This is an excerpt from Manning's book Machine Learning Bookcamp.

  • X is the feature (typically, a matrix) in which rows are feature vectors.
  • In Pandas, a DataFrame is simply a table: a data structure with rows and columns (figure D.1).

    Figure D.9 Using iloc to access rows of a DataFrame

    To use this index to access rows, we need “loc” instead of “iloc”. For example:

    df.loc[[0, 1]]

    As a result, we get a DataFrame with rows indexed by “0” and “1” — the last row and the row in the middle (Figure D.13).

    Figure D.14 When using loc, we get rows using the index, not the position