feature selection selectpercentile
#Import Libraries import numpy as np import pandas as pd from sklearn.feature_selection import SelectPercentile, f_classif # Data Processing df=pd.read_csv("https://archive.ics.uci.edu/ml/machine-learning-databases/00537/sobar-72.csv") y=df.pop('ca_cervix') #Feature Selection selectpercentile = SelectPercentile(f_classif, percentile=40) transformed_data=selectpercentile.fit_transform(df, y) selectpercentile.get_feature_names_out()