表題の通りですが、画像のコードで特定の型名のリストを取り出すことができません。モジュールに組み込んでいた時は普通に動いていたのですが、なぜだかご教示いただけないでしょうか?
df = pd.concat([train,additional_tr],axis='columns') num_col = [col for col in df.columns if df[col].dtype != 'object' and col not in config.unused] not_num_col = [col for col in df.columns if col not in num_col and col not in config.unused or df[col].dtype == 'category'] AttributeError: 'DataFrame' object has no attribute 'dtype'
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2021/07/14 09:04