
Loading…

Everything this lesson covers — Audit Data, Fix Data, Code Demonstration (Sample 1) and Code Demonstration (Sample 2) — in one visual map. Click any topic to open it, or download the full map as an image for revision.
Mind map
Click a topic to open or close it · drag to move · scroll to zoom · the download includes every topic, fully expanded
df.info()df.isnull()df.isnull().sum()df.isnull().sum().sum()df.duplicated()df.duplicated().sum()df.duplicated(subset=['column_name'], keep='first/last/false')df.info() for dtypesdf.memory_usage(deep=True) for memory consumptiondf['column'].fillna(value)df.drop_duplicates()df.drop_duplicates(subset=['column_name'])df['column'].str.strip() to remove spacesdf['column'].str.title() for consistent casingpd.DataFrame(data)df.shape, df.columns, df.info()df.isnull().sum()df['salary'].fillna(df['salary'].mean())df['name'].fillna('Unknown')df.drop_duplicates()df['name'].str.strip().str.title()pd.DataFrame(data)raw_orders.copy() to 'original'raw_orders.info()raw_orders.memory_usage(deep=True).sum()raw_orders.isnull().sum()raw_orders.duplicated().sum()raw_orders.duplicated(subset=['order_id'], keep='first/last/false')raw_orders['product_category'].value_counts(dropna=False)raw_orders[['quantity', 'unit_price', 'total_amount']].describe().round(1)orders = raw_orders.copy()orders['quantity'].fillna(orders['quantity'].median())orders['product_category'].fillna(orders['product_category'].mode()[0])orders['status'].fillna('Unknown')orders.dropna(subset=['customer_name', 'city'])