drop_zero_variance

drop_zero_variance(data)

The function drop_zero_variance takes a pandas DataFrame as input and returns a new DataFrame with columns that have zero variance removed.

Parameters

Name Type Description Default
data pd.DataFrame The data parameter is a pandas DataFrame or a pandas DataFrameGroupBy object. It represents the required
data pd.DataFrame required

Returns

Type Description
a filtered DataFrame with columns that have non-zero variance.