detect_const_cols: Detect if any column of a data.frame has constant values.
Description
It occasionally happens that a column in dataframe contains a single value throughout.
This could lead to redundant computational cost and unexpected behavior in Machine Learning methods.
This function scans though all columns of dataframe to examine if any column has no variation.