product_name の文字列をreplaceしたい
product_name 列の文字列を置換するには、replace メソッドを使用できます。具体的には、次のようにします:
python
data['product_name'] = data['product_name'].replace({'old_string': 'new_string'}, regex=True)
old_string を置換したい古い文字列、new_string を新しい文字列に置き換えます。このコードは、正規表現を使用して置換を行います。もし完全一致での置換を行いたい場合は、regex=False とします。

ディスカッション
コメント一覧
まだ、コメントがありません