Skip to content

import numpy as np import pandas as pd # statsmodels is used to build statistical models import statsmodels.api as sm # To split the data into train and test sets from sklearn.model_selection import train_test_split # Load the dataset cook = pd.read_csv('Chapter 9 - Case Study Dataset - Cookingrange.csv') # Manually print DataFrame info in the required format for i, (col, dtype) in enumerate(zip(cook.columns, cook.dtypes)): non_null = cook[col].notnull().sum() print(f"{i} \n{col} \n{non_null} non-null \n{dtype}") #3917

@error303-NON

Description

@error303-NON
No description provided.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions