import pandas as pd
# Assuming 'df' is your DataFrame
# Replace 'column_name' with the actual name of the column you want to search
# Check if there are any missing values in the entire DataFrame
any_missing = df.isnull().values.any()
# Find the total number of missing values in the specified column
missing_count = df['column_name'].isnull().sum()
# Find the rows where 'column_name' has missing values
missing_rows = df[df['column_name'].isnull()]
# Find the index (row number) of the first occurrence of a missing value in 'column_name'
first_missing_index = df['column_name'].index[df['column_name'].isnull()].tolist()[0]