## ライブラリのインストール pip install xfeat, sklearn >> /dev/null ## ライブラリのインポート from xfeat import SelectNumerical from sklearn import datasets ## タイタニックのデータセット取得 X, y = datasets.fetch_openml(data_id=40945, return_X_y=True, as_frame=True) ## 上記で取得したXからカテゴリ変数のみを抽出する SelectNumerical().fit_transform(X)
◆実行結果:数値項目のみが抽出された
