macpie.pandas.get_col_names#
- macpie.pandas.get_col_names(df: DataFrame, col_names: List[str], strict=True)#
Get the properly-cased columns names from
df
, ignoring case.- Parameters:
- dfDataFrame
- col_nameslist-like
List of case-insensitive column names
- strictbool, default True
If True, raise error if a column can’t be found, otherwise return None for that column
- Returns:
- list
The list of properly-cased column names.