Skip to content

Latest commit

 

History

History
22 lines (18 loc) · 548 Bytes

File metadata and controls

22 lines (18 loc) · 548 Bytes

Pandas Replace Advanced

Replaces strings in a DataFrame cell using a mapping specified in a dictionary. For example, if you want to replace "cat" with "dog" and replace "mountain" with "ocean", specify the mapping in Python dict format:

{"cat":"dog", "mountain":"ocean"}

Input

Name Data type
dataframe DataFrame
replacement_dict String

Output

Data type
DataFrame

Category: Data cleansing

ComfyUI Data Analysis Node Reference. © 2025 Hide Inada (HowToSD.com). All rights reserved.