macpie.pandas.any_duplicates#
- macpie.pandas.any_duplicates(df: DataFrame, col: str, ignore_nan: bool = False)#
Return
True
if there are any duplicates incol
.- Parameters:
- dfDataFrame
- colstr
column to check for duplicates
- ignore_nanbool, default False
Whether to ignore
nan
values
- Returns:
- bool
True if there are duplicates, False otherwise.