前提・実装したいこと
映画のレコメンド機能を実装中なのですが、二つのデータフレームを組み合わせようと思ったところ、以下のようなエラーが出ました。
■■な機能を実装中に以下のエラーメッセージが発生しました。
発生している問題・エラーメッセージ
merged = pd.merge(ratings, movie_new)を実行すると
You are trying to merge on int64 and object columns. If you wish to proceed you should use pd.concat
というエラーが出ます。
また、merged = pd.concat(ratings, movie_new)を実行すると、
first argument must be an iterable of pandas objects, you passed an object of type "DataFrame"
というエラーが出ます。
該当のソースコード
merged = pd.merge(ratings, movie_new)
merged = pd.concat(ratings, movie_new)
試したこと
補足情報(FW/ツールのバージョンなど)

回答2件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/07/23 12:22
2018/07/23 12:26
2018/07/23 12:31
2018/07/23 12:33
2018/07/23 12:50
2018/07/23 12:53
2018/07/23 12:58
2018/07/23 13:17
2018/07/23 13:29
2018/07/23 13:32
2018/07/23 13:36
2018/07/23 13:39
2018/07/23 13:41