causalkit.eda.eda.CausalEDA.data_shape#
- CausalEDA.data_shape()[source]#
Return the shape information of the causal dataset.
Returns a dict with: - n_rows: number of rows (observations) in the dataset - n_columns: number of columns (features) in the dataset
This provides a quick overview of the dataset dimensions for exploratory analysis and reporting purposes.
- Returns:
Dictionary containing ‘n_rows’ and ‘n_columns’ keys with corresponding integer values representing the dataset dimensions.
- Return type:
Examples
>>> eda = CausalEDA(causal_data) >>> shape_info = eda.data_shape() >>> print(f"Dataset has {shape_info['n_rows']} rows and {shape_info['n_columns']} columns")