Menu

Understanding Dataset Dimensions

Understanding Dataset Dimensions

Knowing the size of the dataset helps estimate its complexity.

Code

**house_price_df.shape**

Explanation

The output provides:

  • Number of rows
  • Number of columns

The California Housing Dataset contains:

  • 20640 observations
  • 9 columns

These columns include 8 features and 1 target variable.

Understanding dataset dimensions helps plan preprocessing and modeling activities.