in denseclus/utils.py [0:0]
def extract_numerical(df: pd.DataFrame) -> pd.DataFrame:
"""Extracts numerical features into normailzed numeric only dataframe
Parameters:
df (pd.DataFrame): DataFrame with numerical and categorical features
Returns:
pd.DataFrame: normalized numerical DataFrame of numerical features
"""
check_is_df(df)
numerical = df.select_dtypes(include=["float", "int"])
if numerical.shape[1] == 0:
raise ValueError("No numerics found, check that numerics are in dataframe")
return transform_numerics(numerical)