前提・実現したいこと
いつも大変お世話になっております。
初歩的な質問で申し訳有りません。
データセットはこのような形をしてるのですが、うまく行かない次第です。
発生している問題・エラーメッセージ
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) /usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py in _wrapfunc(obj, method, *args, **kwds) 57 try: ---> 58 return bound(*args, **kwds) 59 except TypeError: 5 frames TypeError: can't multiply sequence by non-int of type 'float' During handling of the above exception, another exception occurred: TypeError Traceback (most recent call last) <__array_function__ internals> in round_(*args, **kwargs) <__array_function__ internals> in around(*args, **kwargs) /usr/local/lib/python3.7/dist-packages/numpy/core/fromnumeric.py in _wrapit(obj, method, *args, **kwds) 42 except AttributeError: 43 wrap = None ---> 44 result = getattr(asarray(obj), method)(*args, **kwds) 45 if wrap: 46 if not isinstance(result, mu.ndarray): TypeError: can't multiply sequence by non-int of type 'float'
該当のソースコード
X_train['Age_mean'] = np.round(X_train['Age_mean'], 1)
試したこと
errorで検索してみたのですが、良い検索がでてきませんでした。
どうかご一助いただけると幸いです。
何卒よろしくお願いします。
補足情報(FW/ツールのバージョンなど)
ここにより詳細な情報を記載してください。
Python3 (3.9)
pycharm 2020.3.5
macbookpro 16