check_column: Check if column exists in dataframe
Description
Validates that a specified column exists in a dataframe.
Usage
check_column(df, col_name)
Value
No return value; throws error if column doesn't exist
Arguments
- df
The dataframe to check
- col_name
The column name to look for